mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 16:12:26 +01:00
Add help and NEWS entries for :bmark!
This commit is contained in:
1
NEWS
1
NEWS
@@ -31,6 +31,7 @@
|
|||||||
* new ;b extended hint mode (thanks Daniel Schaffrath)
|
* new ;b extended hint mode (thanks Daniel Schaffrath)
|
||||||
* :qa! and :q! quit forcefully, as in vim
|
* :qa! and :q! quit forcefully, as in vim
|
||||||
* stop macro playback on <C-c>
|
* stop macro playback on <C-c>
|
||||||
|
* :bmark now updates a bookmark, if possible. :bmark! adds a new one
|
||||||
* many bug fixes
|
* many bug fixes
|
||||||
|
|
||||||
2008-08-16:
|
2008-08-16:
|
||||||
|
|||||||
@@ -261,6 +261,7 @@ liberator.Bookmarks = function () //{{{
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
argCount: "?",
|
argCount: "?",
|
||||||
|
bang: true,
|
||||||
options: [[["-title", "-t"], liberator.commands.OPTION_STRING],
|
options: [[["-title", "-t"], liberator.commands.OPTION_STRING],
|
||||||
[["-tags", "-T"], liberator.commands.OPTION_LIST],
|
[["-tags", "-T"], liberator.commands.OPTION_LIST],
|
||||||
[["-keyword", "-k"], liberator.commands.OPTION_STRING, function (arg) /\w/.test(arg)]]
|
[["-keyword", "-k"], liberator.commands.OPTION_STRING, function (arg) /\w/.test(arg)]]
|
||||||
|
|||||||
@@ -115,10 +115,10 @@ liberator.Buffer = function () //{{{
|
|||||||
{
|
{
|
||||||
if (filter[0] == "*")
|
if (filter[0] == "*")
|
||||||
return "@namespace url(" + XHTML + ");\n" + css;
|
return "@namespace url(" + XHTML + ");\n" + css;
|
||||||
let selectors = filter.map(function (part) (/\/$/.test(part) ? "url-prefix" :
|
let selectors = filter.map(function (part) (/[*]$/.test(part) ? "url-prefix" :
|
||||||
/\/:/.test(part) ? "url"
|
/[\/:]/.test(part) ? "url"
|
||||||
: "domain")
|
: "domain")
|
||||||
+ '("' + part.replace(/"/g, "%22") + '")')
|
+ '("' + part.replace(/"/g, "%22").replace(/[*]$/, "") + '")')
|
||||||
.join(", ");
|
.join(", ");
|
||||||
return "@namespace url(" + XHTML + ");\n" +
|
return "@namespace url(" + XHTML + ");\n" +
|
||||||
"@-moz-document " + selectors + "{\n" + css + "\n}\n";
|
"@-moz-document " + selectors + "{\n" + css + "\n}\n";
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Vimperator supports a number of different marks:
|
|||||||
section:Bookmarks[bookmarks]
|
section:Bookmarks[bookmarks]
|
||||||
|
|
||||||
|a| |:bma| |:bmark|
|
|a| |:bma| |:bmark|
|
||||||
||:bma[rk] [-title=title] [-keyword=kw] [-tags=tag1,tag2] [url]|| +
|
||:bma[rk][!] [-title=title] [-keyword=kw] [-tags=tag1,tag2] [url]|| +
|
||||||
||a||
|
||a||
|
||||||
____________________________________________________________________________
|
____________________________________________________________________________
|
||||||
Add a bookmark. +
|
Add a bookmark. +
|
||||||
@@ -26,8 +26,10 @@ The following options are interpreted:
|
|||||||
- -tags=comma,separated,tag,list (short option: -T)
|
- -tags=comma,separated,tag,list (short option: -T)
|
||||||
- -keyword=keyword (short option: -k)
|
- -keyword=keyword (short option: -k)
|
||||||
|
|
||||||
If you don't add a custom title, either the title of the web page or the URL
|
If [!] is present, a new bookmark is always added. Otherwise, the first
|
||||||
is taken as the title. You can omit the optional [url] argument, so just do
|
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
|
[c]:bmark[c] to bookmark the currently loaded web page with a default title and
|
||||||
without any tags.
|
without any tags.
|
||||||
____________________________________________________________________________
|
____________________________________________________________________________
|
||||||
|
|||||||
Reference in New Issue
Block a user