diff --git a/content/commands.js b/content/commands.js index 24ac8959..13966d87 100644 --- a/content/commands.js +++ b/content/commands.js @@ -324,7 +324,7 @@ function Commands() //{{{ { usage: ["bma[rk] [-t {title}] [url]"], short_help: "Add a bookmark", - help: "If you don't add a custom title, either the title of the web page or the URL will be taken as the title.
" + + help: "If you don't add a custom title, either the title of the web page or the URL is taken as the title.
" + "You can omit the optional [url] argument, so just do :bmark 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:
" + @@ -339,7 +339,7 @@ function Commands() //{{{ usage: ["bmarks [filter]", "bmarks!"], short_help: "Show bookmarks", help: "Open the message window at the bottom of the screen with all bookmarks which match [filter] either in the title or URL.
" + - "The special version :bmarks! will open the default Firefox bookmarks window.
" + + "The special version :bmarks! opens the default Firefox bookmarks window.
" + "The following options WILL be interpreted in the future:
" + " -T comma,separated,tag,list
", completer: function(filter) { return vimperator.completion.get_bookmark_completions(filter); } @@ -451,9 +451,9 @@ function Commands() //{{{ usage: ["delm[arks] {marks}", "delm[arks]!"], short_help: "Delete the specified marks", help: "Marks are presented as a list. Example:
" + - ":delmarks Aa b p will delete marks A, a, b and p
" + - ":delmarks b-p will delete all marks in the range b to p
" + - ":delmarks! will delete all marks for the current buffer" + ":delmarks Aa b p deletes marks A, a, b and p
" + + ":delmarks b-p deletes all marks in the range b to p
" + + ":delmarks! deletes all marks for the current buffer" } )); @@ -481,9 +481,9 @@ function Commands() //{{{ usage: ["delqm[arks] {marks}", "delqm[arks]!"], short_help: "Delete the specified QuickMarks", help: "QuickMarks are presented as a list. Example:
" + - ":delqmarks Aa b p will delete QuickMarks A, a, b and p
" + - ":delqmarks b-p will delete all QuickMarks in the range b to p
" + - ":delqmarks! will delete all QuickMarks" + ":delqmarks Aa b p deletes QuickMarks A, a, b and p
" + + ":delqmarks b-p deletes all QuickMarks in the range b to p
" + + ":delqmarks! deletes all QuickMarks" } )); addDefaultCommand(new Command(["downl[oads]", "dl"], @@ -557,7 +557,7 @@ function Commands() //{{{ { usage: ["exe[cute] {expr1} [ ... ]"], short_help: "Execute the string that results from the evaluation of {expr1} as an Ex command.", - help: ":execute echo test would show a message with the text "test".
" + help: "Example: :execute echo test shows a message with the text "test".
" } )); addDefaultCommand(new Command(["exu[sage]"], @@ -628,7 +628,7 @@ function Commands() //{{{ "
  • :help 'complete' for options (surrounded by ' and ')
  • " + "
  • :help o for mappings (no pre- or postfix)
  • " + "" + - "You can however use partial stings in the tab completion, so :help he<Tab> will complete :help :help.", + "You can however use partial stings in the tab completion, so :help he<Tab> completes :help :help.", completer: function(filter) { return vimperator.completion.get_help_completions(filter); } } )); @@ -638,7 +638,7 @@ function Commands() //{{{ usage: ["hist[ory] [filter]", "history!"], short_help: "Show recently visited URLs", help: "Open the message window at the bottom of the screen with all history items which match [filter] either in the title or URL.
    " + - "The special version :history! will open the default Firefox history window.", + "The special version :history! opens the default Firefox history window.", completer: function(filter) { return vimperator.completion.get_history_completions(filter); } } )); @@ -682,9 +682,9 @@ function Commands() //{{{ usage: ["javas[cript] {cmd}", "javascript <<{endpattern}\\n{script}\\n{endpattern}", "javascript[!]"], // \\n is changed to
    in the help.js code short_help: "Run any JavaScript command through eval()", help: "Acts as a JavaScript interpreter by passing the argument to eval().
    " + - ":javascript alert('Hello world') would show a dialog box with the text \"Hello world\".
    " + - ":javascript <<EOF would read all the lines until a line starting with 'EOF' is found, and will eval() them.
    " + - "The special version :javascript! will open the JavaScript console of Firefox.
    " + + ":javascript alert('Hello world') shows a dialog box with the text \"Hello world\".
    " + + ":javascript <<EOF reads all the lines until a line starting with 'EOF' is found, and interpret them with the JavaScript eval() function.
    " + + "The special version :javascript! opens the JavaScript console of Firefox.
    " + "Rudimentary <Tab> completion is available for :javascript {cmd}<Tab> (but not yet for the " + ":js <<EOF multiline widget). Be aware that Vimperator needs to run {cmd} through eval() " + "to get the completions, which could have unwanted side effects.", @@ -908,7 +908,7 @@ function Commands() //{{{ { usage: ["norm[al][!] {commands}"], short_help: "Execute Normal mode commands", - help: ":normal 20j would scroll 20 lines down." + help: "Example: :normal 20j scrolls 20 lines down." } )); // TODO: remove duplication in :map @@ -988,20 +988,20 @@ function Commands() //{{{ "
      " + "
    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." + - "
    2. " + + "" + "
    3. Opened with the specified search engine if the token looks like a search string " + "and the first word is the name of a search engine (:open wikipedia linus torvalds " + - "will open the wikipedia entry for linus torvalds). The short name of a search engine is automatically guessed from its name. " + - "If you want to set a custom name, open the $FIREFOX_PROFILE/searchplugins/*.xml file of the search engine, and add/change " + + "opens the wikipedia entry for linus torvalds). The short name of a search engine is automatically guessed from its name. " + + "If you want to set a custom name, open the $FIREFOX_PROFILE/searchplugins/*.xml file of the search engine, and add/change " + "<Alias>myalias</Alias>
    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. " + + "if the first word is no search engine (:open linus torvalds opens a Google search for linux torvalds)." + + "
    9. Passed directly to Firefox in all other cases (:open www.osnews.com, www.slashdot.org " + + "opens OSNews in the current, and Slashdot in a new background tab).
    10. " + "
    " + - "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.
    " + + "You can use :open -tags linux torvalds<Tab> to complete bookmarks " + + "with tag \"linux\" and which contain \"torvalds\". Note that -tags 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.", @@ -1308,8 +1308,8 @@ function Commands() //{{{ ":set option! and :set invoption invert the value of a boolean option.
    " + ":set option? or :set option(for string and list options) shows the current value of an option.
    " + ":set option& resets an option to its default value.
    " + - ":set option+={value} and :set option-={value} will add/subtract {value} to a number option and append/remove {value} to a string option.
    " + - ":set all will show the current value of all options and :set all& will reset all options to their default values.
    ", + ":set option+={value} and :set option-={value} adds/subtracts {value} to a number option and append/remove {value} to a string option.
    " + + ":set all shows the current value of all options and :set all& resets all options to their default values.
    ", completer: function(filter) { return vimperator.completion.get_options_completions(filter); } } )); @@ -1386,7 +1386,7 @@ function Commands() //{{{ "NOTE: In both cases you must add functions to the global window object like shown above, functions written as:
    " + "function hello2() {
      alert(\"Hello world\");
    }
    are only available within the scope of the script.

    " + "The .vimperatorrc file in your home directory and any files in ~/.vimperator/plugin/ are always sourced at startup.
    " + - "~ is supported as a shortcut for the $HOME directory.
    " + + "~ is supported as a shortcut for the $HOME directory.
    " + "If ! is specified, errors are not printed.", completer: function(filter) { return vimperator.completion.get_file_completions(filter); } } diff --git a/content/help.js b/content/help.js index 8c8f6ef9..45e054ac 100644 --- a/content/help.js +++ b/content/help.js @@ -169,12 +169,12 @@ vimperator.help = function(section, easter) //{{{ '
  • Unix and Mac - ~/.vimperator/plugin
  • ' + '
  • Windows - ~/vimperator/plugin
  • ' + '' + - '

    The user\'s $HOME(~) directory is determined as follows:

    ' + + '

    The user\'s $HOME(~) directory is determined as follows:

    ' + '' + - '$VIMPERATOR_HOME can be used to override the calculated $HOME directory.'; + '$VIMPERATOR_HOME can be used to override the calculated $HOME directory.'; var mappings = 'mappings

    Mappings

    ' + '

    The denotion of modifier keys is like in Vim, so C- means the Control key, M- the Meta key, A- the Alt key and S- the Shift key.

    '+ diff --git a/content/mappings.js b/content/mappings.js index 927fc32e..8ac77dc4 100644 --- a/content/mappings.js +++ b/content/mappings.js @@ -970,7 +970,7 @@ function Mappings() //{{{ short_help: "Search forward for a pattern", usage: ["/{pattern}[/]"], help: "Search forward for the first occurance of {pattern}.
    " + - "When \"\\c\" appears anywhere in the pattern the whole pattern is handled as though 'ignorecase' is on. " + + "If \"\\c\" appears anywhere in the pattern the whole pattern is handled as though 'ignorecase' is on. " + "\"\\C\" forces case-sensitive matching for the whole pattern.
    " + "If \"\\l\" appears in the pattern only the text of links is searched for a match as though 'linksearch' is on. " + "\"\\L\" forces the entire page to be searched for a match." @@ -982,7 +982,7 @@ function Mappings() //{{{ short_help: "Search backwards for a pattern", usage: ["?{pattern}[?]"], help: "Search backward for the first occurance of {pattern}.
    " + - "When \"\\c\" appears anywhere in the pattern the whole pattern is handled as though 'ignorecase' is on. " + + "If \"\\c\" appears anywhere in the pattern the whole pattern is handled as though 'ignorecase' is on. " + "\"\\C\" forces case-sensitive matching for the whole pattern.
    " + "If \"\\l\" appears in the pattern only the text of links is searched for a match as though 'linksearch' is on. " + "\"\\L\" forces the entire page to be searched for a match.
    " +