diff options
| -rw-r--r-- | ftplugin/hackernews.py | 4 | ||||
| -rw-r--r-- | syntax/hackernews.vim | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/ftplugin/hackernews.py b/ftplugin/hackernews.py index 2c7fd2a..8480979 100644 --- a/ftplugin/hackernews.py +++ b/ftplugin/hackernews.py @@ -69,9 +69,9 @@ def main(): if 'title' not in item: continue if 'domain' in item: - line = "%s%d. %s (%s) [%d]" + line = "%s%d. %s (%s) [%s]%s" line %= (" " if i+1 < 10 else "", i+1, item['title'], - item['domain'], item['id']) + item['domain'], item['url'], unichr(160)) bwrite(line) else: line = "%s%d. %s [%d]" diff --git a/syntax/hackernews.vim b/syntax/hackernews.vim index 133a301..4555b9d 100644 --- a/syntax/hackernews.vim +++ b/syntax/hackernews.vim @@ -13,8 +13,9 @@ if exists("b:current_syntax") endif -" Hide hacker news item id at end of main page lines +" Hide hacker news item id or url at end of front page lines syn match Ignore /\s\[[0-9]\{3,}\]$/ +syn match Ignore /\s\[http.\+\] $/ " Make sure `Ignore` highlight group is hidden " Some colorschemes do not hide the `Ignore` group (ex. Solarized) |
