mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 21:47:59 +01:00
remove half-baked guard clauses for unimplemented bookmark commands
This commit is contained in:
@@ -268,12 +268,6 @@ function Commands() //{{{
|
|||||||
// converts that string to a useful url and title, and calls addBookmark
|
// converts that string to a useful url and title, and calls addBookmark
|
||||||
function(args)
|
function(args)
|
||||||
{
|
{
|
||||||
if (/-[Tk]/.test(args))
|
|
||||||
{
|
|
||||||
vimperator.echoerr("-T {taglist} and -k {keyword} not implemented yet");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var result = Bookmarks.parseBookmarkString(args);
|
var result = Bookmarks.parseBookmarkString(args);
|
||||||
|
|
||||||
if (result)
|
if (result)
|
||||||
@@ -311,16 +305,7 @@ function Commands() //{{{
|
|||||||
}
|
}
|
||||||
));
|
));
|
||||||
addDefaultCommand(new Command(["bmarks"],
|
addDefaultCommand(new Command(["bmarks"],
|
||||||
function(args, special)
|
function(args, special) { vimperator.bookmarks.list(args, special); },
|
||||||
{
|
|
||||||
if (/-T/.test(args))
|
|
||||||
{
|
|
||||||
vimperator.echoerr("-T {taglist} not implemented yet");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
vimperator.bookmarks.list(args, special);
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
usage: ["bmarks [filter]", "bmarks!"],
|
usage: ["bmarks [filter]", "bmarks!"],
|
||||||
short_help: "Show bookmarks",
|
short_help: "Show bookmarks",
|
||||||
@@ -364,12 +349,6 @@ function Commands() //{{{
|
|||||||
addDefaultCommand(new Command(["delbm[arks]"],
|
addDefaultCommand(new Command(["delbm[arks]"],
|
||||||
function(args, special)
|
function(args, special)
|
||||||
{
|
{
|
||||||
if (special || /-T/.test(args))
|
|
||||||
{
|
|
||||||
vimperator.echoerr("[!] and -T {taglist} not implemented yet");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var result = Bookmarks.parseBookmarkString(args);
|
var result = Bookmarks.parseBookmarkString(args);
|
||||||
|
|
||||||
if (result)
|
if (result)
|
||||||
|
|||||||
Reference in New Issue
Block a user