diff options
| -rw-r--r-- | plugin/hackernews.py | 5 | ||||
| -rw-r--r-- | syntax/hackernews.vim | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/plugin/hackernews.py b/plugin/hackernews.py index 7781d72..8dc0a97 100644 --- a/plugin/hackernews.py +++ b/plugin/hackernews.py @@ -66,8 +66,9 @@ def hacker_news(): item['comments_count'], item['id']) bwrite(line) elif item['type'] == "job": - line = "%s%d. %s [%d]" - line %= (" " if i+1 < 10 else "", i+1, item['title'], item['id']) + line = "%s%d. %s (%s) [%d]" + line %= (" " if i+1 < 10 else "", i+1, item['title'], + item['domain'], item['id']) bwrite(line) line = "%s%s [%d]" line %= (" "*4, item['time_ago'], item['id']) diff --git a/syntax/hackernews.vim b/syntax/hackernews.vim index b59dac9..d199f1a 100644 --- a/syntax/hackernews.vim +++ b/syntax/hackernews.vim @@ -12,6 +12,7 @@ syn match Ignore /\s\[[0-9]\{3,}\]$/ " Remove emphesis from all components of main page item except title syn match Comment /^\s*[0-9]\{1,2}\.\s/ syn match Comment /\s(\S\+\.\S\+)/ +syn match Comment /^\s\{4}.*ago/ syn match Comment /^.*ago\s|.*comments/ " Comment titles |
