1
0
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:
Doug Kearns
2007-07-04 10:58:55 +00:00
parent 071d83c5bd
commit bade047430
2 changed files with 12 additions and 12 deletions

View File

@@ -193,6 +193,17 @@ function Bookmarks() //{{{
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.tags is an array of tags

View File

@@ -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 ////////////////////////////////////////
/////////////////////////////////////////////////////////////////////{{{