diff --git a/chrome/content/vimperator/bookmarks.js b/chrome/content/vimperator/bookmarks.js index 5875bd03..2d4e87e7 100644 --- a/chrome/content/vimperator/bookmarks.js +++ b/chrome/content/vimperator/bookmarks.js @@ -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 diff --git a/chrome/content/vimperator/commands.js b/chrome/content/vimperator/commands.js index 43f7e3b5..947ea0d4 100644 --- a/chrome/content/vimperator/commands.js +++ b/chrome/content/vimperator/commands.js @@ -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 "); } -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 //////////////////////////////////////// /////////////////////////////////////////////////////////////////////{{{