| Age | Commit message (Collapse) | Author | Files | Lines |
|
From @alexluecke PR #8
Closes #3
|
|
The first line of of each front page item (that contains the title and
domain) links to the external url associated with the item.
The second line of each item (that contains the points, user, comment
count) links to the comments page.
This is consistent with how the actual Hacker News front page works.
|
|
The hackernews.link(external=True) function works better than the
default `gx` functionality. By default, `gx` will sometimes not work on
urls surrounded by brackets/braces/parenthesis, and will not work on
urls spanning multiple lines. The hackernews.link() function does not
have these issues.
|
|
|
|
|
|
Once you import a python module into an instance of vim it does not get
reloaded when a plugin manager updates the plugin. This can cause errors
when, for example, a new function is added to the python module and
updated vim code is trying to call it. This commit does two things:
1) Does not load the python code until the :HackerNews command is
called. There is no need to load the python code during vim startup if
the plugin will not be used.
2) Each time the :HackerNews command is issued and a .hackernews buffer
is opened the python code is reloaded to avoid the errors previously
mentioned.
|
|
|
|
|
|
|
|
|
|
|
|
|