From db9dae9db16473b860c0a1b7ae3756f1a8781f5a Mon Sep 17 00:00:00 2001 From: ryanss Date: Sat, 5 Sep 2015 23:59:00 -0400 Subject: Add basic search 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 --- plugin/hackernews.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugin') diff --git a/plugin/hackernews.vim b/plugin/hackernews.vim index cb0bff1..1958e3e 100644 --- a/plugin/hackernews.vim +++ b/plugin/hackernews.vim @@ -28,6 +28,8 @@ endif function! HackerNews(...) if a:0 > 0 let g:hackernews_arg = a:1 + else + let g:hackernews_arg = "" endif execute "edit .hackernews" normal! gg -- cgit v1.2.3