mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 06:08:02 +01:00
move global function bmshow() to vimperator.bookmarks.list
This commit is contained in:
@@ -260,7 +260,7 @@ function Commands() //{{{
|
||||
}
|
||||
));
|
||||
addDefaultCommand(new Command(["bookm[arks]", "bm"],
|
||||
bmshow,
|
||||
function(args, special) { vimperator.bookmarks.list(args, special); },
|
||||
{
|
||||
usage: ["bm[!] [-T] {regexp}"],
|
||||
short_help: "Show bookmarks",
|
||||
@@ -1330,17 +1330,6 @@ function bmdel(str)
|
||||
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 ////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////{{{
|
||||
|
||||
Reference in New Issue
Block a user