From 9a1dcb05fc9d05aa8613d0330fabb628e80a765a Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 8 Jun 2007 00:46:50 +0000 Subject: [PATCH] remove old/disabled :addons command --- chrome/content/vimperator/commands.js | 95 +++++++++++---------------- 1 file changed, 40 insertions(+), 55 deletions(-) diff --git a/chrome/content/vimperator/commands.js b/chrome/content/vimperator/commands.js index efba3b2d..282a8342 100644 --- a/chrome/content/vimperator/commands.js +++ b/chrome/content/vimperator/commands.js @@ -269,7 +269,7 @@ function Commands()//{{{ { usage: ["{count}ba[ck][!]"], short_help: "Go back in the browser history", - help: "Count is supported, :3back goes back 3 pages in the browser history.
"+ + help: "Count is supported, :3back goes back 3 pages in the browser history.
" + "The special version :back! goes to the beginning of the browser history." } )); @@ -298,7 +298,7 @@ function Commands()//{{{ "You can omit the optional [url] field, so just do :bmadd to bookmark the currently loaded web page with a default title and without any tags.
" + " -t \"custom title\"
" + "The following options will be interpreted in the future:
" + - " -T comma,separated,tag,list
"+ + " -T comma,separated,tag,list
" + " -k keyword
" } )); @@ -358,7 +358,7 @@ function Commands()//{{{ { usage: ["downl[oads]"], short_help: "Show progress of current downloads", - help: "Open the original Firefox download dialog in a new tab.
"+ + help: "Open the original Firefox download dialog in a new tab.
" + "Here, downloads can be paused, canceled and resumed." } )); @@ -404,7 +404,7 @@ function Commands()//{{{ { usage: ["{count}fo[rward][!]"], short_help: "Go forward in the browser history", - help: "Count is supported, :3forward goes forward 3 pages in the browser history.
"+ + help: "Count is supported, :3forward goes forward 3 pages in the browser history.
" + "The special version :forward! goes to the end of the browser history." } )); @@ -421,13 +421,13 @@ function Commands()//{{{ { usage: ["h[elp] {subject}"], short_help: "Open the help window", - help: "You can jump to the specified {subject} with :help {subject}.
"+ - "Make sure you use the full vim notation when jumping to {subject}. This means:
"+ - ""+ + help: "You can jump to the specified {subject} with :help {subject}.
" + + "Make sure you use the full vim notation when jumping to {subject}. This means:
" + + "" + "You can however use partial stings in the tab completion, so :help he<Tab> will complete :help :help.", completer: function(filter) { return get_help_completions(filter); } } @@ -437,7 +437,7 @@ function Commands()//{{{ { usage: ["hist[ory] {filter}"], short_help: "Show recently visited URLs", - help: "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."+ + help: "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.", completer: function(filter) { return get_history_completions(filter); } } @@ -494,24 +494,24 @@ function Commands()//{{{ usage: ["o[pen] [url] [| url]"], short_help: "Open one or more URLs in the current tab", help: "Multiple URLs can be separated with the | character.
" + - "Each |-separated token is analyzed and in this order:
"+ - "
    "+ - "
  1. Transformed to a relative URL of the current location if it starts with . or .. or ...;
    "+ - "... is special and moves up the directory hierarchy as far as possible."+ - "
    • :open ... with current location \"http://www.example.com/dir1/dir2/file.html\" will open \"http://www.example.com\"
    • "+ - "
    • :open ./foo.html with current location \"http://www.example.com/dir1/dir2/file.html\" will open \"http://www.example.com/dir1/dir2/foo.html\"
  2. "+ - "
  3. Opened with the specified search engine if the token looks like a search string "+ - "and the first word of the token is the name of a search engine (:open wikipedia linus torvalds "+ - "will open the wikipedia entry for linux torvalds).
  4. "+ - "
  5. Opened with the default search engine or keyword (specified with the 'defsearch' option) "+ - "if the first word is no search engine (:open linus torvalds will open a google search for linux torvalds).
  6. "+ - "
  7. Passed directly to Firefox in all other cases (:open www.osnews.com | www.slashdot.org will "+ - "open OSNews in the current, and Slashdot in a new background tab).
  8. "+ - "
"+ - "You WILL be able to use :open [-T \"linux\"] torvalds<Tab> to complete bookmarks "+ - "with tag \"linux\" and which contain \"torvalds\". Note that -T support is only available for tab completion, not for the actual command.
"+ - "The items which are completed on <Tab> are specified in the 'complete' option.
"+ - "Without argument, reloads the current page.
"+ + "Each |-separated token is analyzed and in this order:
" + + "
    " + + "
  1. Transformed to a relative URL of the current location if it starts with . or .. or ...;
    " + + "... is special and moves up the directory hierarchy as far as possible." + + "
    • :open ... with current location \"http://www.example.com/dir1/dir2/file.html\" will open \"http://www.example.com\"
    • " + + "
    • :open ./foo.html with current location \"http://www.example.com/dir1/dir2/file.html\" will open \"http://www.example.com/dir1/dir2/foo.html\"
  2. " + + "
  3. Opened with the specified search engine if the token looks like a search string " + + "and the first word of the token is the name of a search engine (:open wikipedia linus torvalds " + + "will open the wikipedia entry for linux torvalds).
  4. " + + "
  5. Opened with the default search engine or keyword (specified with the 'defsearch' option) " + + "if the first word is no search engine (:open linus torvalds will open a google search for linux torvalds).
  6. " + + "
  7. Passed directly to Firefox in all other cases (:open www.osnews.com | www.slashdot.org will " + + "open OSNews in the current, and Slashdot in a new background tab).
  8. " + + "
" + + "You WILL be able to use :open [-T \"linux\"] torvalds<Tab> to complete bookmarks " + + "with tag \"linux\" and which contain \"torvalds\". Note that -T support is only available for tab completion, not for the actual command.
" + + "The items which are completed on <Tab> are specified in the 'complete' option.
" + + "Without argument, reloads the current page.
" + "Without argument but with !, reloads the current page skipping the cache.", completer: function(filter) { return get_url_completions(filter); } } @@ -528,7 +528,7 @@ function Commands()//{{{ { usage: ["pref[erences]"], short_help: "Show Browser Preferences", - help: "You can change the browser preferences from this dialog.
Be aware that not all Firefox preferences work, because Vimperator overrides some keybindings and changes Firefox's GUI.
"+ + help: "You can change the browser preferences from this dialog.
Be aware that not all Firefox preferences work, because Vimperator overrides some keybindings and changes Firefox's GUI.
" + "Works like :set!, but opens the dialog in a new window instead of a new tab. Use this, if you experience problems/crashes when using :set!" } )); @@ -586,12 +586,12 @@ function Commands()//{{{ { usage: ["se[t][!]", "se[t] {option}[?]", "se[t] {option}[+-]={value}"], short_help: "Set an option", - help: "Permanently change an option. In contrast to Vim options are stored throughout sessions.
"+ - "Boolean options must be set with :set option and :set nooption.
"+ - ":set without an argument opens about:config in a new tab to change advanced Firefox options.
"+ - ":set! opens the GUI preference panel from Firefox in a new tab.
"+ - ":set option? or :set option shows the current value of the option.
"+ - ":set option& resets 'option' to the default value.
"+ + help: "Permanently change an option. In contrast to Vim options are stored throughout sessions.
" + + "Boolean options must be set with :set option and :set nooption.
" + + ":set without an argument opens about:config in a new tab to change advanced Firefox options.
" + + ":set! opens the GUI preference panel from Firefox in a new tab.
" + + ":set option? or :set option shows the current value of the option.
" + + ":set option& resets 'option' to the default value.
" + ":set option+=foo and :set option-=foo WILL add/remove foo from list options.
", completer: function(filter) { return get_options_completions(filter); } } @@ -601,7 +601,7 @@ function Commands()//{{{ { usage: ["so[urce][!] {file}"], short_help: "Read Ex commands from {file}", - help: "The .vimperatorrc file in your home directory is always sourced at start up.
"+ + help: "The .vimperatorrc file in your home directory is always sourced at start up.
" + "~ is supported as a shortcut for the $HOME directory.
" + "If ! is specified, errors are not printed.", completer: function (filter) { return get_file_completions(filter); } @@ -666,7 +666,7 @@ function Commands()//{{{ { usage: ["tabopen [url] [| url]"], short_help: "Open one or more URLs in a new tab", - help: "Like :open but open URLs in a new tab.
"+ + help: "Like :open but open URLs in a new tab.
" + "If used with !, the 'tabopen' value of the 'activate' option is negated.", completer: function (filter) { return get_url_completions(filter); } } @@ -754,7 +754,7 @@ function Commands()//{{{ { usage: ["wqa[ll]", "xa[ll]"], short_help: "Save the session and quit", - help: "Quit Vimperator, no matter how many tabs/windows are open. The session is stored.
"+ + help: "Quit Vimperator, no matter how many tabs/windows are open. The session is stored.
" + ":wq is different as in vim, as it closes the window instead of just one tab by popular demand. Complain on the mailing list, if you want to change that." } )); @@ -1757,7 +1757,6 @@ function selectInput() texts.snapshotItem(0).focus(); } - function toggle_images() { if (!gPrefService) { message("EEP: no gPrefService"); @@ -1779,18 +1778,4 @@ function toggle_images() { message ("imageBehavior set to " + pref); } - - - -function(args) { openURLsInNewTab("chrome://mozapps/content/extensions/extensions.xul", true); }; -//function Commands() -//{ -// this.addons = function(args) -// { -// openURLsInNewTab("chrome://mozapps/content/extensions/extensions.xul", true); -// } -// -// logMessage("Commands initialized"); -//} - // vim: set fdm=marker sw=4 ts=4 et: