1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 18:42:27 +01:00

Add help and NEWS entries for :bmark!

This commit is contained in:
Kris Maglione
2008-10-04 19:58:18 +00:00
parent 4b4e578dc3
commit 506838b41d
4 changed files with 11 additions and 7 deletions

1
NEWS
View File

@@ -31,6 +31,7 @@
* new ;b extended hint mode (thanks Daniel Schaffrath)
* :qa! and :q! quit forcefully, as in vim
* stop macro playback on <C-c>
* :bmark now updates a bookmark, if possible. :bmark! adds a new one
* many bug fixes
2008-08-16:

View File

@@ -261,6 +261,7 @@ liberator.Bookmarks = function () //{{{
},
{
argCount: "?",
bang: true,
options: [[["-title", "-t"], liberator.commands.OPTION_STRING],
[["-tags", "-T"], liberator.commands.OPTION_LIST],
[["-keyword", "-k"], liberator.commands.OPTION_STRING, function (arg) /\w/.test(arg)]]

View File

@@ -115,10 +115,10 @@ liberator.Buffer = function () //{{{
{
if (filter[0] == "*")
return "@namespace url(" + XHTML + ");\n" + css;
let selectors = filter.map(function (part) (/\/$/.test(part) ? "url-prefix" :
/\/:/.test(part) ? "url"
: "domain")
+ '("' + part.replace(/"/g, "%22") + '")')
let selectors = filter.map(function (part) (/[*]$/.test(part) ? "url-prefix" :
/[\/:]/.test(part) ? "url"
: "domain")
+ '("' + part.replace(/"/g, "%22").replace(/[*]$/, "") + '")')
.join(", ");
return "@namespace url(" + XHTML + ");\n" +
"@-moz-document " + selectors + "{\n" + css + "\n}\n";

View File

@@ -15,7 +15,7 @@ Vimperator supports a number of different marks:
section:Bookmarks[bookmarks]
|a| |:bma| |:bmark|
||:bma[rk] [-title=title] [-keyword=kw] [-tags=tag1,tag2] [url]|| +
||:bma[rk][!] [-title=title] [-keyword=kw] [-tags=tag1,tag2] [url]|| +
||a||
____________________________________________________________________________
Add a bookmark. +
@@ -26,8 +26,10 @@ The following options are interpreted:
- -tags=comma,separated,tag,list (short option: -T)
- -keyword=keyword (short option: -k)
If you don't add a custom title, either the title of the web page or the URL
is taken as the title. You can omit the optional [url] argument, so just do
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.
____________________________________________________________________________