summaryrefslogtreecommitdiff
path: root/ftplugin
diff options
context:
space:
mode:
authorryanss2015-03-19 23:59:00 -0400
committerryanss2015-03-19 23:59:00 -0400
commit972baa34d26f283a10a0cc86a11ed9211ad9c949 (patch)
treed704901ecad3a05e913143143258616801e7875f /ftplugin
parent9a9109d189d2fe00d707cbf39d0ec32f016a5a27 (diff)
downloadvim-hn-972baa34d26f283a10a0cc86a11ed9211ad9c949.tar.gz
Add hidden item id links to comment header lines
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/hackernews.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftplugin/hackernews.py b/ftplugin/hackernews.py
index 37f1e05..65938ae 100644
--- a/ftplugin/hackernews.py
+++ b/ftplugin/hackernews.py
@@ -253,9 +253,9 @@ def print_comments(comments, level=0):
for comment in comments:
if 'level' in comment:
# This is a comment (not content) so add comment header
- bwrite("%sComment by %s %s:"
+ bwrite("%sComment by %s %s: [%s]"
% (" "*level*4, comment.get('user', '???'),
- comment['time_ago']))
+ comment['time_ago'], comment['id']))
for p in comment['content'].split("<p>"):
if not p:
continue