summaryrefslogtreecommitdiff
path: root/ftplugin
AgeCommit message (Collapse)AuthorFilesLines
2015-09-26Fix opening url links that begin at char 0 in lineryanss1-1/+1
Preceeding `[` was being included in url. Example comment [10318839]
2015-09-05Add basic searchryanss1-3/+53
Plugin will now display search results from Algolia search API when optional argument passed to `:HackerNews` command is not an alternative page name (ask, show, etc) or item id. Currently only sorted by popularity with no ability to sort other ways. Close #26
2015-09-04Improve handling of optional argryanss2-44/+53
An item_id can now be passed as the optional argument to the `:Hackernews` command which will load that specific item into the .hackernews buffer, whether it be a story, poll, comment thread or individual comment. Ex. `:Hackernews 9015621` Close #35
2015-08-28Prevent syntax issues in long threads with code blocksryanss1-2/+4
Example comments [10114881]
2015-07-24Switch syntax to markdown when viewing article textryanss1-0/+4
2015-06-28Fix exception caused by comment items without contentryanss1-0/+4
Example [9772426]
2015-06-17Fix runaway italic syntax when no closing underscoreryanss2-2/+2
Example comment [9720796]
2015-04-26Release version 0.2ryanss2-2/+2
2015-04-05Fix error when undoing too farryanss1-0/+4
Remove undo history before story list is written to buffer so it is no longer possible to undo all the way back to an empty buffer which would cause an error in the Python save_pos() and recall_pos() functions.
2015-04-04Open different story lists in different buffersryanss1-2/+2
Before this change trying to open a second, different story list using the optional HackerNews command arugment would not do anything if a .hackernews buffer was already open.
2015-04-03Move default settings from ftplugin to pluginryanss1-9/+0
:HackerNews commands needs `g:hackernews_stories` set before ftplugin code is executed.
2015-04-02Set default story list to prevent exceptionryanss1-0/+5
Exception only occurs when calling `:edit .hackernews` instead of properly calling the `:HackerNews` command.
2015-04-01Show item url on comment page when not HN itemryanss1-1/+3
2015-03-30Fix syntax highlighting issuesryanss1-1/+0
2015-03-23Fix bug opening links when multiple links on same lineryanss1-19/+22
2015-03-21Fix error rendering `job` itemsryanss1-1/+2
2015-03-20Clear OP username syntax match when loading new itemryanss1-0/+2
2015-03-19Add hidden item id links to comment header linesryanss1-2/+2
2015-03-17Refactor duplicate code in print functionsryanss1-39/+8
2015-03-12Python 3 fixesryanss1-1/+2
2015-03-10Add test for key remapsryanss1-2/+2
2015-03-08Add ability to view alternate pages, Closes #27ryanss1-7/+13
ask, show, shownew, jobs, best, active, newest, noobstories
2015-03-07Add text representation of poll resultsryanss1-3/+11
2015-03-09Fix HTTPError messagerambominator1-1/+1
2015-03-06Refactor duplicate code in link() functionryanss1-77/+42
2015-03-03Add commment thread foldingryanss1-1/+30
2015-03-02Remove use of tabs for comments layout -- spaces onlyryanss1-4/+5
2015-03-01Replace <i>italic</i> tags with _italic_ underscoresryanss1-0/+2
2015-02-28Highlight OP username in comment titlesryanss1-0/+4
2015-02-27Fix error rendering links to individual commentsryanss1-39/+48
2015-02-25Save cursor position when using back/forward commandsryanss1-2/+6
2015-02-24Improve helper motions and documentationryanss1-11/+25
2015-02-22Fix extra blank line above code blocks with +python3ryanss1-1/+4
2015-02-22Add highlighted links and navigation to article textryanss1-7/+13
2015-02-21Fix #28 Add Python3 supportryanss2-34/+53
2015-02-19Improve handling of html tags in commentsryanss1-15/+20
Fixes errors trying to view comments for item=8955426
2015-02-19Add motion to move between items on front page easierryanss1-0/+17
From @alexluecke PR #8 Closes #3
2015-02-16Front page title line now links to item url. Close #4ryanss1-2/+2
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.
2015-02-15Fix #10 Remap `gx` to use hackernews.link() functionryanss1-0/+1
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.
2015-02-10Remove unwanted extra blank lines around code blocksryanss1-4/+5
2015-02-10Fix typoryanss1-1/+1
2015-02-10Wait for :HackerNews command to load python code Fixes #22ryanss2-4/+340
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.
2015-02-09Save cursor position when moving back/forward #11ryanss1-0/+7
2015-02-08Only remap `o` inside the .hackernews bufferryanss1-2/+2
2015-02-07Release version 0.1.1ryanss1-1/+1
2015-02-07Release version 0.1ryanss1-0/+1
2015-02-07Add Roadmap and Contribution sections to READMEryanss1-0/+9
2015-02-06Add opening links with default web browserryanss1-0/+2