1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 12:27:59 +01:00

output "not implemented yet" messages for all unimplemented commands

This commit is contained in:
Doug Kearns
2007-06-19 06:22:00 +00:00
parent 7eb4643d5e
commit cc23556f02

View File

@@ -233,7 +233,7 @@ function Commands()//{{{
/////////////////////////////////////////////////////////////////////////////{{{ /////////////////////////////////////////////////////////////////////////////{{{
addDefaultCommand(new Command(["addo[ns]"], addDefaultCommand(new Command(["addo[ns]"],
function(args) { openURLsInNewTab("chrome://mozapps/content/extensions/extensions.xul", true); }, function() { openURLsInNewTab("chrome://mozapps/content/extensions/extensions.xul", true); },
{ {
usage: ["addo[ns]"], usage: ["addo[ns]"],
short_help: "Show available Browser Extensions and Themes", short_help: "Show available Browser Extensions and Themes",
@@ -325,7 +325,7 @@ function Commands()//{{{
} }
)); ));
addDefaultCommand(new Command(["delm[arks]"], addDefaultCommand(new Command(["delm[arks]"],
function(marks, special) { vimperator.marks.remove(marks, special); }, function(args, special) { vimperator.marks.remove(args, special); },
{ {
usage: ["delm[arks]! {marks}"], usage: ["delm[arks]! {marks}"],
short_help: "Delete the specified marks {a-zA-Z}", short_help: "Delete the specified marks {a-zA-Z}",
@@ -446,17 +446,21 @@ function Commands()//{{{
} }
)); ));
addDefaultCommand(new Command(["ma[rk]"], addDefaultCommand(new Command(["ma[rk]"],
function(mark) { vimperator.marks.add(mark) }, function(args) { vimperator.marks.add(args) },
{ {
usage: ["ma[rk] {arg}"], usage: ["ma[rk] {arg}"],
short_help: "Mark current location within the webpage", short_help: "Mark current location within the webpage",
} }
)); ));
addDefaultCommand(new Command(["marks"], addDefaultCommand(new Command(["marks"],
function(mark) { vimperator.marks.list(mark) }, function(args) {
vimperator.echo("marks not implemented yet");
//vimperator.marks.list(args)
},
{ {
usage: ["marks {arg}"], usage: ["marks {arg}"],
short_help: "Show all location marks of current webpage", short_help: "Show all location marks of current webpage",
help: "Not implemented yet."
} }
)); ));
addDefaultCommand(new Command(["o[pen]", "e[dit]"], addDefaultCommand(new Command(["o[pen]", "e[dit]"],
@@ -515,7 +519,7 @@ function Commands()//{{{
} }
)); ));
addDefaultCommand(new Command(["q[uit]"], addDefaultCommand(new Command(["q[uit]"],
function (args) { vimperator.tabs.remove(getBrowser().mCurrentTab, 1, false, 1); }, function() { vimperator.tabs.remove(getBrowser().mCurrentTab, 1, false, 1); },
{ {
usage: ["q[uit]"], usage: ["q[uit]"],
short_help: "Quit current tab or quit Vimperator if this was the last tab", short_help: "Quit current tab or quit Vimperator if this was the last tab",
@@ -523,7 +527,7 @@ function Commands()//{{{
} }
)); ));
addDefaultCommand(new Command(["quita[ll]", "qa[ll]"], addDefaultCommand(new Command(["quita[ll]", "qa[ll]"],
function (args) { quit(false); }, function() { quit(false); },
{ {
usage: ["quita[ll]"], usage: ["quita[ll]"],
short_help: "Quit Vimperator", short_help: "Quit Vimperator",
@@ -607,7 +611,7 @@ function Commands()//{{{
} }
)); ));
addDefaultCommand(new Command(["tabl[ast]"], addDefaultCommand(new Command(["tabl[ast]"],
function(args, count) { vimperator.tabs.select("$", false); }, function() { vimperator.tabs.select("$", false); },
{ {
usage: ["tabl[ast]"], usage: ["tabl[ast]"],
short_help: "Switch to the last tab" short_help: "Switch to the last tab"
@@ -623,7 +627,7 @@ function Commands()//{{{
} }
)); ));
addDefaultCommand(new Command(["tabn[ext]", "tn[ext]"], addDefaultCommand(new Command(["tabn[ext]", "tn[ext]"],
function(args, special, count) { vimperator.tabs.select("+1", true); }, function() { vimperator.tabs.select("+1", true); },
{ {
usage: ["tabn[ext]"], usage: ["tabn[ext]"],
short_help: "Switch to the next tab", short_help: "Switch to the next tab",
@@ -654,7 +658,7 @@ function Commands()//{{{
} }
)); ));
addDefaultCommand(new Command(["tabp[revious]", "tp[revious]", "tabN[ext]", "tN[ext]"], addDefaultCommand(new Command(["tabp[revious]", "tp[revious]", "tabN[ext]", "tN[ext]"],
function(args, count) { vimperator.tabs.select("-1", true); }, function() { vimperator.tabs.select("-1", true); },
{ {
usage: ["tabp[revious]", "tabN[ext]"], usage: ["tabp[revious]", "tabN[ext]"],
short_help: "Switch to the previous tab", short_help: "Switch to the previous tab",
@@ -662,7 +666,7 @@ function Commands()//{{{
} }
)); ));
addDefaultCommand(new Command(["tabr[ewind]", "tabfir[st]"], addDefaultCommand(new Command(["tabr[ewind]", "tabfir[st]"],
function(args, count) { vimperator.tabs.select(0, false); }, function() { vimperator.tabs.select(0, false); },
{ {
usage: ["tabr[ewind]", "tabfir[st]"], usage: ["tabr[ewind]", "tabfir[st]"],
short_help: "Switch to the first tab" short_help: "Switch to the first tab"
@@ -677,7 +681,10 @@ function Commands()//{{{
} }
)); ));
addDefaultCommand(new Command(["qmarka[dd]", "qma[dd]"], addDefaultCommand(new Command(["qmarka[dd]", "qma[dd]"],
function(args) { set_url_mark("mark", "url"); }, // FIXME function(args) {
vimperator.echo("qmarkadd not implemented yet");
//set_url_mark("mark", "url");
}, // FIXME
{ {
usage: ["qmarka[dd] {a-zA-Z0-9} [url]"], usage: ["qmarka[dd] {a-zA-Z0-9} [url]"],
short_help: "Mark a URL with a letter for quick access", short_help: "Mark a URL with a letter for quick access",
@@ -686,7 +693,10 @@ function Commands()//{{{
} }
)); ));
addDefaultCommand(new Command(["qmarkd[el]", "qmd[el]"], addDefaultCommand(new Command(["qmarkd[el]", "qmd[el]"],
function(args) { set_url_mark("mark", "url"); }, // FIXME function(args) {
vimperator.echo("qmarkdel not implemented yet");
//set_url_mark("mark", "url");
}, // FIXME
{ {
usage: ["qmarkd[el] {a-zA-Z0-9}"], usage: ["qmarkd[el] {a-zA-Z0-9}"],
short_help: "Remove a marked URL", short_help: "Remove a marked URL",
@@ -695,7 +705,10 @@ function Commands()//{{{
} }
)); ));
addDefaultCommand(new Command(["qmarks", "qms"], addDefaultCommand(new Command(["qmarks", "qms"],
function(args) { show_url_marks(args); }, // FIXME function(args) {
vimperator.echo("qmarks not implemented yet");
//show_url_marks(args);
}, // FIXME
{ {
usage: ["qmarks"], usage: ["qmarks"],
short_help: "Shows marked URLs", short_help: "Shows marked URLs",
@@ -724,7 +737,9 @@ function Commands()//{{{
} }
)); ));
addDefaultCommand(new Command(["wino[pen]", "w[open]", "wine[dit]"], addDefaultCommand(new Command(["wino[pen]", "w[open]", "wine[dit]"],
function () { vimperator.echo("winopen not yet implemented"); }, function() {
vimperator.echo("winopen not implemented yet");
},
{ {
usage: ["wino[pen] [url] [| url]"], usage: ["wino[pen] [url] [| url]"],
short_help: "Open an URL in a new window", short_help: "Open an URL in a new window",
@@ -732,7 +747,7 @@ function Commands()//{{{
} }
)); ));
addDefaultCommand(new Command(["xa[ll]", "wqa[ll]", "wq"], addDefaultCommand(new Command(["xa[ll]", "wqa[ll]", "wq"],
function (args) { quit(true); }, function() { quit(true); },
{ {
usage: ["wqa[ll]", "xa[ll]"], usage: ["wqa[ll]", "xa[ll]"],
short_help: "Save the session and quit", short_help: "Save the session and quit",