mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 10:47:57 +01:00
move global function bmshow() to vimperator.bookmarks.list
This commit is contained in:
@@ -193,6 +193,17 @@ function Bookmarks() //{{{
|
|||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.list = function(filter, fullmode)
|
||||||
|
{
|
||||||
|
if (fullmode)
|
||||||
|
openURLsInNewTab("chrome://browser/content/bookmarks/bookmarksPanel.xul", true);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var items = vimperator.bookmarks.get(filter);
|
||||||
|
vimperator.previewwindow.show(items);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
res = parseBookmarkString("-t tag1,tag2 -T title http://www.orf.at");
|
res = parseBookmarkString("-t tag1,tag2 -T title http://www.orf.at");
|
||||||
res.tags is an array of tags
|
res.tags is an array of tags
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ function Commands() //{{{
|
|||||||
}
|
}
|
||||||
));
|
));
|
||||||
addDefaultCommand(new Command(["bookm[arks]", "bm"],
|
addDefaultCommand(new Command(["bookm[arks]", "bm"],
|
||||||
bmshow,
|
function(args, special) { vimperator.bookmarks.list(args, special); },
|
||||||
{
|
{
|
||||||
usage: ["bm[!] [-T] {regexp}"],
|
usage: ["bm[!] [-T] {regexp}"],
|
||||||
short_help: "Show bookmarks",
|
short_help: "Show bookmarks",
|
||||||
@@ -1330,17 +1330,6 @@ function bmdel(str)
|
|||||||
vimperator.echo("Usage: :bmdel <url>");
|
vimperator.echo("Usage: :bmdel <url>");
|
||||||
}
|
}
|
||||||
|
|
||||||
function bmshow(filter, fullmode)
|
|
||||||
{
|
|
||||||
if (fullmode)
|
|
||||||
openURLsInNewTab("chrome://browser/content/bookmarks/bookmarksPanel.xul", true);
|
|
||||||
else
|
|
||||||
{
|
|
||||||
var items = vimperator.bookmarks.get(filter);
|
|
||||||
vimperator.previewwindow.show(items);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////}}}
|
/////////////////////////////////////////////////////////////////////}}}
|
||||||
// tab/buffer related functions ////////////////////////////////////////
|
// tab/buffer related functions ////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////{{{
|
||||||
|
|||||||
Reference in New Issue
Block a user