From 2315887077681aa785352445b87fbb3a03669211 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sun, 14 Dec 2008 23:07:21 +1100 Subject: [PATCH] document -max option to :history and :bmarks --- vimperator/content/bookmarks.js | 2 ++ vimperator/locale/en-US/marks.txt | 19 +++++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/vimperator/content/bookmarks.js b/vimperator/content/bookmarks.js index 7f5ac793..9f74f1e9 100644 --- a/vimperator/content/bookmarks.js +++ b/vimperator/content/bookmarks.js @@ -602,6 +602,7 @@ function Bookmarks() //{{{ // if openItems is true, open the matching bookmarks items in tabs rather than display list: function list(filter, tags, openItems, maxItems) { + // FIXME: returning here doesn't make sense if (!openItems) return completion.listCompleter("bookmark", filter, maxItems, tags); let items = completion.runCompleter("bookmark", filter, maxItems, tags); @@ -848,6 +849,7 @@ function History() //{{{ // if openItems is true, open the matching history items in tabs rather than display list: function list(filter, openItems, maxItems) { + // FIXME: returning here doesn't make sense if (!openItems) return completion.listCompleter("history", filter, maxItems); let items = completion.runCompleter("history", filter, maxItems); diff --git a/vimperator/locale/en-US/marks.txt b/vimperator/locale/en-US/marks.txt index aa1db1b1..5f511afe 100644 --- a/vimperator/locale/en-US/marks.txt +++ b/vimperator/locale/en-US/marks.txt @@ -28,10 +28,11 @@ The following options are interpreted: If [!] is present, a new bookmark is always added. Otherwise, the first bookmark matching [url] is updated. -When creating a new bookmark, if [-title] isn't given, either the web page's -title or URL is used. You can omit the optional [url] argument, so just do -[c]:bmark[c] to bookmark the currently loaded web page with a default title and -without any tags. + +When creating a new bookmark, if [a][-title][a] isn't given, either the web +page's title or URL is used. You can omit the optional [url] argument, so just +do [c]:bmark[c] to bookmark the currently loaded web page with a default title +and without any tags. ____________________________________________________________________________ @@ -49,12 +50,14 @@ ________________________________________________________________________________ ||:bmarks[!] [filter]|| + ________________________________________________________________________________ List or open multiple bookmarks. Open the message window at the bottom of the -screen with all bookmarks which match [filter] either in the title or URL. + +screen with all bookmarks which match [filter] either in the title or URL. + The special version [c]:bmarks![c] works the same as [c]:bmarks[c] except it opens all the found bookmarks in new tabs. Filter can also contain the following options: + --tags=comma,separated,tag,list + +-tags=comma,separated,tag,list (short option: -T) + +-max=N (short options: -m) ________________________________________________________________________________ @@ -125,8 +128,12 @@ ________________________________________________________________________________ ________________________________________________________________________________ Show recently visited URLs. Open the message window at the bottom of the screen with all history items which match [filter] either in the title or URL. + The special version [c]:history![c] works the same as [c]:history[c] except it opens all the found items in new tabs. + +Filter can also contain the following options: + +-max=N (short options: -m) ________________________________________________________________________________ section:QuickMarks[quickmarks]