diff --git a/chrome/content/vimperator/commands.js b/chrome/content/vimperator/commands.js
index 5970e5df..8952ec3c 100644
--- a/chrome/content/vimperator/commands.js
+++ b/chrome/content/vimperator/commands.js
@@ -47,8 +47,8 @@ const COMPLETEFUNC = 5;
*/
var g_commands = [/*{{{*/
[
- ["addons"],
- ["addons"],
+ ["addo[ns]"],
+ ["addo[ns]"],
"Show available Browser Extensions and Themes",
"You can add/remove/disable browser extensions from this dialog.
Be aware that not all Firefox extensions work, because Vimperator overrides some keybindings and changes Firefox's GUI.",
//function() { },
@@ -56,7 +56,7 @@ var g_commands = [/*{{{*/
null
],
[
- ["back", "ba"],
+ ["ba[ck]"],
["{count}ba[ck][!]"],
"Go back in the browser history",
"Count is supported, :3back goes back 3 pages in the browser history.
"+
@@ -65,7 +65,7 @@ var g_commands = [/*{{{*/
null
],
[
- ["bdelete", "bd", "bwipeout", "bw", "bunload", "bun", "tabclose", "tabc"],
+ ["bd[elete]", "bw[ipeout]", "bun[load]", "tabc[lose]"],
["{count}bd[elete][!]"],
"Delete current buffer (=tab)",
"Count WILL be supported in future releases, then :2bd removes two tabs and the one the right is selected.
Do :bdelete! to select the tab to the left after removing the current tab.",
@@ -81,8 +81,8 @@ var g_commands = [/*{{{*/
null
],
[
- ["bmadd"],
- ["bmadd [-tTk] [url]"],
+ ["bma[dd]"],
+ ["bma[dd] [-tTk] [url]"],
"Add a bookmark",
"If you don't add a custom title, either the title of the webpage or the URL will be taken as the title.
" +
"Tags WILL be some mechanism to classify bookmarks. Assume, you tag a url with the tags \"linux\" and \"computer\" you'll be able to search for bookmarks containing these tags.
" +
@@ -95,8 +95,8 @@ var g_commands = [/*{{{*/
null
],
[
- ["bmdel"],
- ["bmdel [-T] {url}"],
+ ["bmd[el]"],
+ ["bmd[el] [-T] {url}"],
"Delete a bookmark",
"Deletes all bookmarks which matches the url AND the specified tags. Use <Tab> key on a regular expression to complete the url which you want to delete.
" +
"The following options WILL be interpretted in the future:
" +
@@ -105,7 +105,7 @@ var g_commands = [/*{{{*/
function(filter) { return get_bookmark_completions(filter); }
],
[
- ["bookmarks", "bm"],
+ ["bookm[arks]", "bm"],
["bm[!] [-T] {regexp}"],
"Show bookmarks",
"Open the preview window at the bottom of the screen for all bookmarks which match the regexp either in the title or URL.
" +
@@ -116,7 +116,7 @@ var g_commands = [/*{{{*/
function(filter) { return get_bookmark_completions(filter); }
],
[
- ["buffer", "b"],
+ ["b[uffer]"],
["b[uffer] {url|index}"],
"Go to buffer from buffer list",
"Argument can be either the buffer index or the full URL.",
@@ -132,8 +132,8 @@ var g_commands = [/*{{{*/
null
],
[
- ["downloads", "dl"],
- ["downloads"],
+ ["downl[oads]", "dl"],
+ ["downl[oads]"],
"Show progress of current downloads",
"Open the original Firefox download dialog in a new tab.
"+
"Here, downloads can be paused, canceled and resumed.",
@@ -141,7 +141,7 @@ var g_commands = [/*{{{*/
null
],
[
- ["echo", "ec"],
+ ["ec[ho]"],
["ec[ho]"],
"Display a string at the bottom of the window",
"Echo all arguments of this command. Useful for showing informational messages.
Multiple lines WILL be seperated by \\n.",
@@ -149,7 +149,7 @@ var g_commands = [/*{{{*/
null
],
[
- ["echoerr", "echoe"],
+ ["echoe[rr]"],
["echoe[rr]"],
"Display an error string at the bottom of the window",
"Echo all arguments of this command highlighted in red. Useful for showing important messages.
Multiple lines WILL be seperated by \\n.",
@@ -157,7 +157,7 @@ var g_commands = [/*{{{*/
null
],
[
- ["execute", "exe"],
+ ["exe[cute]"],
["exe[cute] {expr1} [ ... ]"],
"Execute the string that results from the evaluation of {expr1} as an Ex command.",
":execute "echo test" would show a message with the text "test".
",
@@ -165,8 +165,8 @@ var g_commands = [/*{{{*/
null
],
[
- ["forward", "fw"],
- ["{count}forward[!]"],
+ ["fo[rward]", "fw"],
+ ["{count}fo[rward][!]"],
"Go forward in the browser history",
"Count is supported, :3forward goes forward 3 pages in the browser history.
"+
"The special version :forward! goes to the end of the browser history.",
@@ -174,7 +174,7 @@ var g_commands = [/*{{{*/
null
],
[
- ["hardcopy", "ha"],
+ ["ha[rdcopy]"],
["ha[rdcopy]"],
"Print current document",
"Open a GUI dialog where you can select the printer, number of copies, orientation, etc.",
@@ -182,7 +182,7 @@ var g_commands = [/*{{{*/
null
],
[
- ["help", "h"],
+ ["h[elp]"],
["h[elp] {subject}"],
"Open the help window",
"You can jump to the specified {subject} with :help {subject}.
"+
@@ -192,13 +192,13 @@ var g_commands = [/*{{{*/
"
:help 'complete' for settings (surrounded by ' and '):help o for mappings (no pre- or postfix):help he<Tab> will complete :help :help",
+ "You can however use partial stings in the tab completion, so :help he<Tab> will complete :help :help.",
help,
function(filter) { return get_help_completions(filter); }
],
[
- ["history", "hs"],
- ["history {filter}"],
+ ["hist[ory]", "hs"],
+ ["hist[ory] {filter}"],
"Show recently visited URLs",
"Open the preview window at the bottom of the screen for all history items which match the filter string either in the title or URL."+
"Close this window with :pclose or open entries with double click in the current tab or middle click in a new tab.",
@@ -206,8 +206,8 @@ var g_commands = [/*{{{*/
function(filter) { return get_history_completions(filter); }
],
[
- ["javascript", "js"],
- ["javascript {cmd}", "javascript <<{endpattern}\\n{script}\\n{endpattern}"], // \\n is changed to eval().:javascript alert('Hello world') would show a dialog box with the text \"Hello world\".:set!, but opens the dialog in a new window instead of a new tab. Use this, if you experience problems/crashes when using :set!",
@@ -298,7 +298,7 @@ var g_commands = [/*{{{*/
null
],
[
- ["quit", "q"],
+ ["q[uit]"],
["q[uit]"],
"Quit current tab or quit Vimperator if this was the last tab",
"When quitting Vimperator, the session is not stored.",
@@ -306,7 +306,7 @@ var g_commands = [/*{{{*/
null
],
[
- ["quitall", "quita", "qall", "qa"],
+ ["quita[ll]", "qa[ll]"],
["quita[ll]"],
"Quit Vimperator",
"Quit Vimperator, no matter how many tabs/windows are open. The session is not stored.",
@@ -314,7 +314,7 @@ var g_commands = [/*{{{*/
null
],
[
- ["reload", "re"],
+ ["re[load]"],
["re[load]"],
"Reload current page",
"Forces reloading of the current page, or of all open pages, if ! is given.",
@@ -322,15 +322,15 @@ var g_commands = [/*{{{*/
null
],
[
- ["restart"],
- ["restart"],
+ ["res[tart]"],
+ ["res[tart]"],
"Force the browser to restart",
"Useful when installing extenstions.",
restart,
null
],
[
- ["saveas", "sav"],
+ ["sav[eas]"],
["sav[eas]"],
"Save current web page to disk",
"Open the original Firefox \"Save page as...\" dialog in a new tab.:open but open URLs in a new tab.:version!.",
@@ -477,15 +477,15 @@ var g_commands = [/*{{{*/
null
],
[
- ["winopen", "w", "wo", "wopen", "winedit", "wine"],
- ["win[open] [url] [| url]"],
+ ["wino[pen]", "w[open]", "wine[dit]"],
+ ["wino[pen] [url] [| url]"],
"Open an URL in a new window",
- "Not implemented yet",
+ "Not implemented yet.",
function () { vimperator.echo("winopen not yet implemented"); },
null
],
[
- ["xall", "xa", "wqall", "wqa", "wq"],
+ ["xa[ll]", "wqa[ll]", "wq"],
["wqa[ll]", "xa[ll]"],
"Save the session and quit",
"Quit Vimperator, no matter how many tabs/windows are open. The session is stored.:open for more details",
+ "See :open for more details.",
function(count) { vimperator.commandline.open(":", "open ", vimperator.modes.EX); }
],
[
@@ -613,7 +613,7 @@ var g_mappings = [/*{{{*/
["p", "'defsearch' setting) with p",
+ "You can also just select some non-URL text, and search for it with the default search engine or keyword (specified by the 'defsearch' setting) with p.",
function(count) { openURLs(readFromClipboard()); }
],
[
@@ -643,7 +643,7 @@ var g_mappings = [/*{{{*/
["t"],
"Open one or more URLs in a new tab",
"Like o but open URLs in a new tab.:tabopen for more details",
+ "See :tabopen for more details.",
function(count) { vimperator.commandline.open(":", "tabopen ", vimperator.modes.EX); }
],
[
@@ -657,7 +657,7 @@ var g_mappings = [/*{{{*/
["u"],
["{count}u"],
"Undo closing of a tab",
- "If a count is given, don't close the last but the n'th last tab",
+ "If a count is given, don't close the last but the n'th last tab.",
function(count) { execute_command(count, 'undo', false, ''); }
],
[
@@ -737,14 +737,14 @@ var g_mappings = [/*{{{*/
["gg", "35gg vertically goes to 35% of the document",
+ "Count is supported, 35gg vertically goes to 35% of the document.",
function(count) { scrollBufferAbsolute(-1, count > 0 ? count : 0); }
],
[
["G", "35G vertically goes to 35% of the document",
+ "Count is supported, 35G vertically goes to 35% of the document.",
function(count) { scrollBufferAbsolute(-1, count >= 0 ? count : 100); }
],
[
@@ -783,7 +783,7 @@ var g_mappings = [/*{{{*/
["2gu on http://www.example.com/dir1/dir2/file.htm would open http://www.example.com/dir1/",
+ "Count is supported, 2gu on http://www.example.com/dir1/dir2/file.htm would open http://www.example.com/dir1/.",
goUp
],
[
@@ -1076,34 +1076,86 @@ var g_hint_mappings = [ /*{{{*/
["