1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-22 22:53:32 +01:00

document -max option to :history and :bmarks

This commit is contained in:
Doug Kearns
2008-12-14 23:07:21 +11:00
parent fc70aa96c7
commit 2315887077
2 changed files with 15 additions and 6 deletions

View File

@@ -602,6 +602,7 @@ function Bookmarks() //{{{
// if openItems is true, open the matching bookmarks items in tabs rather than display // if openItems is true, open the matching bookmarks items in tabs rather than display
list: function list(filter, tags, openItems, maxItems) list: function list(filter, tags, openItems, maxItems)
{ {
// FIXME: returning here doesn't make sense
if (!openItems) if (!openItems)
return completion.listCompleter("bookmark", filter, maxItems, tags); return completion.listCompleter("bookmark", filter, maxItems, tags);
let items = completion.runCompleter("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 // if openItems is true, open the matching history items in tabs rather than display
list: function list(filter, openItems, maxItems) list: function list(filter, openItems, maxItems)
{ {
// FIXME: returning here doesn't make sense
if (!openItems) if (!openItems)
return completion.listCompleter("history", filter, maxItems); return completion.listCompleter("history", filter, maxItems);
let items = completion.runCompleter("history", filter, maxItems); let items = completion.runCompleter("history", filter, maxItems);

View File

@@ -28,10 +28,11 @@ The following options are interpreted:
If [!] is present, a new bookmark is always added. Otherwise, the first If [!] is present, a new bookmark is always added. Otherwise, the first
bookmark matching [url] is updated. 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 When creating a new bookmark, if [a][-title][a] isn't given, either the web
[c]:bmark[c] to bookmark the currently loaded web page with a default title and page's title or URL is used. You can omit the optional [url] argument, so just
without any tags. 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]|| + ||:bmarks[!] [filter]|| +
________________________________________________________________________________ ________________________________________________________________________________
List or open multiple bookmarks. Open the message window at the bottom of the 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 The special version [c]:bmarks![c] works the same as [c]:bmarks[c] except it
opens all the found bookmarks in new tabs. opens all the found bookmarks in new tabs.
Filter can also contain the following options: + 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 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. 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 The special version [c]:history![c] works the same as [c]:history[c] except
it opens all the found items in new tabs. it opens all the found items in new tabs.
Filter can also contain the following options: +
-max=N (short options: -m)
________________________________________________________________________________ ________________________________________________________________________________
section:QuickMarks[quickmarks] section:QuickMarks[quickmarks]