From b4f251bf4ba95d6d9c1b03117274a3470588e5f8 Mon Sep 17 00:00:00 2001 From: ryanss Date: Fri, 4 Sep 2015 23:59:00 -0400 Subject: Improve handling of optional arg 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 --- tests.vader | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests.vader') diff --git a/tests.vader b/tests.vader index c9dd9f8..e45df0e 100644 --- a/tests.vader +++ b/tests.vader @@ -73,8 +73,8 @@ Expect (Keys Mapped): o *@:Python hackernews.link() O *@:Python hackernews.link(external=True) gx *@:Python hackernews.link(external=True) - u *@:Python hackernews.save_pos()u:Python hackernews.recall_pos() - *@:Python hackernews.save_pos():Python hackernews.recall_pos() + u *@:Python hackernews.save_pos()u:Python hackernews.recall_pos("undo") + *@:Python hackernews.save_pos():Python hackernews.recall_pos("redo") Do (Test opening link item w/ url): :HackerNews\ -- cgit v1.2.3