From 9fb3febe9593ebaf9574e8f44ec7c7cc67e4ced0 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 17 Dec 2010 12:30:51 -0500 Subject: [PATCH] Typo and general idiocy fixes. Kill 'linksearch'. --- common/content/bookmarks.js | 4 ++-- common/content/browser.js | 2 +- common/content/buffer.js | 20 +++++++++----------- common/content/commandline.js | 6 +++--- common/content/completion.js | 16 +++++++--------- common/content/dactyl.js | 9 +++++---- common/content/editor.js | 4 ++-- common/content/finder.js | 11 +++-------- common/content/hints.js | 17 +++++++++-------- common/content/io.js | 8 ++++---- common/content/javascript.js | 2 +- common/content/mappings.js | 2 +- common/content/tabs.js | 4 ++-- common/locale/en-US/index.xml | 1 - common/locale/en-US/options.xml | 16 ---------------- common/locale/en-US/pattern.xml | 2 +- 16 files changed, 50 insertions(+), 74 deletions(-) diff --git a/common/content/bookmarks.js b/common/content/bookmarks.js index 4d93fa19..2b3d625c 100644 --- a/common/content/bookmarks.js +++ b/common/content/bookmarks.js @@ -564,7 +564,7 @@ const Bookmarks = Module("bookmarks", { }, options: function () { options.add(["defsearch", "ds"], - "Set the default search engine", + "The default search engine", "string", "google", { completer: function completer(context) { @@ -574,7 +574,7 @@ const Bookmarks = Module("bookmarks", { }); options.add(["suggestengines"], - "Engine alias which provide search suggestions", + "Search engines used for search suggestions", "stringlist", "google", { completer: function completer(context) completion.searchEngine(context, true), }); }, diff --git a/common/content/browser.js b/common/content/browser.js index fc91a144..7c3d44a4 100644 --- a/common/content/browser.js +++ b/common/content/browser.js @@ -41,7 +41,7 @@ const Browser = Module("browser", { }, { options: function () { options.add(["encoding", "enc"], - "Sets the current buffer's character encoding", + "The current buffer's character encoding", "string", "UTF-8", { scope: Option.SCOPE_LOCAL, diff --git a/common/content/buffer.js b/common/content/buffer.js index 971896ee..b6362aea 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -1764,21 +1764,19 @@ const Buffer = Module("buffer", { }, options: function () { options.add(["nextpattern"], - "Patterns to use when guessing the 'next' page in a document sequence", + "Patterns to use when guessing the next page in a document sequence", "regexplist", UTF8("'\\bnext\\b',^>$,^(>>|»)$,^(>|»),(>|»)$,'\\bmore\\b'"), { regexpFlags: "i" }); options.add(["previouspattern"], - "Patterns to use when guessing the 'previous' page in a document sequence", + "Patterns to use when guessing the previous page in a document sequence", "regexplist", UTF8("'\\bprev|previous\\b',^<$,^(<<|«)$,^(<|«),(<|«)$"), { regexpFlags: "i" }); options.add(["pageinfo", "pa"], - "Desired info in the :pageinfo output", + "Define which sections are shown by the :pageinfo command", "charlist", "gfm", - { - completer: function (context) [[k, v[1]] for ([k, v] in Iterator(buffer.pageInfo))] - }); + { completer: function (context) [[k, v[1]] for ([k, v] in Iterator(buffer.pageInfo))] }); options.add(["scroll", "scr"], "Number of lines to scroll with and commands", @@ -1786,18 +1784,18 @@ const Buffer = Module("buffer", { { validator: function (value) value >= 0 }); options.add(["showstatuslinks", "ssli"], - "Show the destination of the link under the cursor in the status bar", + "Where to show the destination of the link under the cursor", "string", "status", { completer: function (context) [ - ["", "Don't show link destination"], - ["status", "Show the link in the status line"], - ["command", "Show the link in the command line"] + ["", "Don't show link destinations"], + ["status", "Show link destinations in the status line"], + ["command", "Show link destinations in the command line"] ] }); options.add(["usermode", "um"], - "Show current website with a minimal style sheet to make it easily accessible", + "Show current website without styling defined by the author", "boolean", false, { setter: function (value) config.browser.markupDocumentViewer.authorStyleDisabled = value, diff --git a/common/content/commandline.js b/common/content/commandline.js index fa2539d8..b9e2147d 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -1703,17 +1703,17 @@ const CommandLine = Module("commandline", { { validator: function (value) value >= 0 }); options.add(["maxitems"], - "Maximum number of items to display at once", + "Maximum number of completion items to display at once", "number", 20, { validator: function (value) value >= 1 }); options.add(["messages", "msgs"], - "Number of messages to store in the message history", + "Number of messages to store in the :message history", "number", 100, { validator: function (value) value >= 0 }); options.add(["more"], - "Pause the message list window when more than one screen of listings is displayed", + "Pause the message list window when the full output will not fit on one page", "boolean", true); options.add(["showmode", "smd"], diff --git a/common/content/completion.js b/common/content/completion.js index 7dce069b..c536c781 100644 --- a/common/content/completion.js +++ b/common/content/completion.js @@ -961,10 +961,10 @@ const Completion = Module("completion", { // Because its description is useful during completion. --Kris ["", "Complete only the first match"], ["full", "Complete the next full match"], - ["longest", "Complete to longest common string"], + ["longest", "Complete the longest common string"], ["list", "If more than one match, list all matches"], ["list:full", "List all and complete first match"], - ["list:longest", "List all and complete common string"] + ["list:longest", "List all and complete the longest common string"] ], checkHas: function (value, val) { let [first, second] = value.split(":", 2); @@ -977,7 +977,7 @@ const Completion = Module("completion", { }; options.add(["altwildmode", "awim"], - "Define how command-line completion works when the Alt key is pressed", + "Define the behavior of the key in command-line completion", "stringlist", "list:full", wildmode); @@ -988,12 +988,10 @@ const Completion = Module("completion", { options.add(["complete", "cpt"], "Items which are completed at the :open prompts", "charlist", config.defaults.complete == null ? "slf" : config.defaults.complete, - { - completer: function (context) values(completion.urlCompleters) - }); + { completer: function (context) values(completion.urlCompleters) }); options.add(["wildanchor", "wia"], - "Regexp list defining which contexts require matches anchored to the beginning of the result", + "Define which completion groups only match at the beginning of their text", "regexplist", "!/ex/(back|buffer|ext|forward|help|undo)"); options.add(["wildcase", "wic"], @@ -1008,12 +1006,12 @@ const Completion = Module("completion", { }); options.add(["wildmode", "wim"], - "Define how command-line completion works", + "Define the behavior of the key in command-line completion", "stringlist", "list:full", wildmode); options.add(["wildsort", "wis"], - "Regexp list of which contexts to sort", + "Define which completion groups are sorted", "regexplist", ".*"); } }); diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 78fe6a03..4c9808f4 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1168,7 +1168,7 @@ const Dactyl = Module("dactyl", { "boolean", false); options.add(["exrc", "ex"], - "Allow reading of an RC file in the current directory", + "Enable automatic sourcing of an RC file in the current directory at startup", "boolean", false); options.add(["fullscreen", "fs"], @@ -1265,7 +1265,7 @@ const Dactyl = Module("dactyl", { "regexplist", "'\\.(js|" + config.fileExtension + ")$'"); options.add(["titlestring"], - "Change the title of the window", + "The string shown at the end of the window title", "string", config.defaults.titlestring || config.host, { setter: function (value) { @@ -1297,8 +1297,9 @@ const Dactyl = Module("dactyl", { }); options.add(["urlseparator", "urlsep", "us"], - "Set the separator regexp used to separate multiple URL args", - "string", "\\|"); + "The regular expression used to separate multiple URLs in :open and friends", + "string", "\\|", + { validator: function (value) RegExp(value) }); options.add(["verbose", "vbs"], "Define which info messages are displayed", diff --git a/common/content/editor.js b/common/content/editor.js index 483c31dd..61bcf06e 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -771,7 +771,7 @@ const Editor = Module("editor", { options: function () { options.add(["editor"], - "Set the external text editor", + "The external text editor", "string", "gvim -f +%l %f", { format: function (obj, value) { let args = commands.parseArgs(value || this.value, { argCount: "*", allowUnknownOptions: true }) @@ -789,7 +789,7 @@ const Editor = Module("editor", { }); options.add(["insertmode", "im"], - "Use Insert mode as the default for text areas", + "Enter Insert mode rather than Text Edit mode when focusing text areas", "boolean", true); } }); diff --git a/common/content/finder.js b/common/content/finder.js index d01486d2..04e6affc 100644 --- a/common/content/finder.js +++ b/common/content/finder.js @@ -27,10 +27,10 @@ const RangeFinder = Module("rangefinder", { let highlighted = this.rangeFind && this.rangeFind.highlighted; let selections = this.rangeFind && this.rangeFind.selections; + let linksOnly = false; let regexp = false; let matchCase = options["searchcase"] === "smart" ? /[A-Z]/.test(str) : options["searchcase"] === "ignore" ? false : true; - let linksOnly = options["linksearch"]; str = str.replace(/\\(.|$)/g, function (m, n1) { if (n1 == "c") @@ -204,7 +204,7 @@ const RangeFinder = Module("rangefinder", { prefs.safeSet("accessibility.typeaheadfind", false); options.add(["hlsearch", "hls"], - "Highlight previous search pattern matches", + "Highlight all /search pattern matches on the current page after a search", "boolean", false, { setter: function (value) { try { @@ -231,13 +231,8 @@ const RangeFinder = Module("rangefinder", { }); options.add(["incsearch", "is"], - "Show where the search pattern matches as it is typed", + "Search for a pattern incrementally as it is typed rather than awaiting ", "boolean", true); - - options.add(["linksearch", "lks"], - "Limit the search to hyperlink text", - "boolean", false); - } }); diff --git a/common/content/hints.js b/common/content/hints.js index 85a54ca8..653aaf45 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -1115,7 +1115,7 @@ const Hints = Module("hints", { function xpath(arg) Option.quote(util.makeXPath(arg)); options.add(["extendedhinttags", "eht"], - "XPath string of hintable elements activated by ';'", + "XPath strings of hintable elements for extended hint modes", "regexpmap", "[iI]:" + xpath(["img"]) + ",[OTivVWy]:" + xpath(["{a,area}[@href]", "{img,iframe}[@src]"]) + ",[F]:" + xpath(["div", "span", "p", "body", "html"]) + @@ -1160,7 +1160,7 @@ const Hints = Module("hints", { }); options.add(["hintmatching", "hm"], - "How links are matched", + "How hints are filtered", "stringlist", "contains", { completer: function (context) [ @@ -1175,17 +1175,18 @@ const Hints = Module("hints", { }); options.add(["wordseparators", "wsp"], - "How words are split for hintmatching", - "string", '[.,!?:;/"^$%&?()[\\]{}<>#*+|=~ _-]'); + "Regular expression defining which characters separate words when matching hints", + "string", '[.,!?:;/"^$%&?()[\\]{}<>#*+|=~ _-]', + { validator: function (value) RegExp(value) }); options.add(["hintinputs", "hin"], - "How text input fields are hinted", + "Which text is used to filter hints for input elements", "stringlist", "label,value", { completer: function (context) [ - ["value", "Match against the value contained by the input field"], - ["label", "Match against the value of a label for the input field, if one can be found"], - ["name", "Match against the name of an input field, only if neither a name or value could be found."] + ["value", "Match against the value of the input field"], + ["label", "Match against the text of a label for the input field, if one can be found"], + ["name", "Match against the name of the input field"] ] }); } diff --git a/common/content/io.js b/common/content/io.js index dac41e8b..88f41ce3 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -808,7 +808,7 @@ lookup: "boolean", true); options.add(["fileencoding", "fenc"], - "Sets the character encoding of read and written files", + "The character encoding used when reading and writing files", "string", "UTF-8", { completer: function (context) completion.charset(context), getter: function () File.defaultEncoding, @@ -824,11 +824,11 @@ lookup: "stringlist", IO.runtimePath); options.add(["shell", "sh"], - "Shell to use for executing :! and :run commands", + "Shell to use for executing external commands with :! and :run", "string", shell); options.add(["shellcmdflag", "shcf"], - "Flag passed to shell when executing :! and :run commands", + "Flag passed to shell when executing external commands with :! and :run", "string", shellcmdflag, { getter: function (value) { @@ -839,7 +839,7 @@ lookup: }); options.add(["wildignore", "wig"], - "List of file patterns to ignore when completing files", + "List of file patterns to ignore when completing file names", "regexplist", ""); } }); diff --git a/common/content/javascript.js b/common/content/javascript.js index 50e05fd4..adbc92ea 100644 --- a/common/content/javascript.js +++ b/common/content/javascript.js @@ -664,7 +664,7 @@ const JavaScript = Module("javascript", { }, options: function () { options.add(["jsdebugger", "jsd"], - "Use the JavaScript debugger service for JavaScript completion", + "Enable the JavaScript debugger service for use in JavaScript completion", "boolean", false, { setter: function (value) { if (services.debugger.isOn != value) diff --git a/common/content/mappings.js b/common/content/mappings.js index 455f7c30..08c71404 100644 --- a/common/content/mappings.js +++ b/common/content/mappings.js @@ -547,7 +547,7 @@ const Mappings = Module("mappings", { }, options: function () { options.add(["mapleader", "ml"], - "Defines the replacement keys for the pseudo-key", + "Define the replacement keys for the pseudo-key", "string", "\\"); } }); diff --git a/common/content/tabs.js b/common/content/tabs.js index 212e5a19..4f9118f6 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -943,7 +943,7 @@ const Tabs = Module("tabs", { }, options: function () { options.add(["showtabline", "stal"], - "Control when to show the tab bar of opened web pages", + "Define when the tab bar is visible", "number", config.defaults["showtabline"], { setter: function (value) { @@ -983,7 +983,7 @@ const Tabs = Module("tabs", { ["paste", "P and gP mappings"] ]; options.add(["activate", "act"], - "Define when tabs are automatically activated", + "Define when newly created tabs are automatically activated", "stringlist", [g[0] for (g in values(activateGroups.slice(1))) if (!g[2] || !prefs.get("browser.tabs." + g[2]))].join(","), { completer: function (context) activateGroups, diff --git a/common/locale/en-US/index.xml b/common/locale/en-US/index.xml index 97f32508..902f7436 100644 --- a/common/locale/en-US/index.xml +++ b/common/locale/en-US/index.xml @@ -396,7 +396,6 @@ This file contains a list of all available commands, mappings and options.
insertmode
Use Insert mode as the default for text areas
jsdebugger
Use the JavaScript debugger service for JavaScript completion
laststatus
Show the status line
-
linksearch
Limit the search to hyperlink text
loadplugins
Load plugin scripts when starting up
mapleader
Defines the replacement keys for the pseudo-key
maxitems
Maximum number of items to display at once in a listing
diff --git a/common/locale/en-US/options.xml b/common/locale/en-US/options.xml index 2ca61d20..bb2e8153 100644 --- a/common/locale/en-US/options.xml +++ b/common/locale/en-US/options.xml @@ -944,22 +944,6 @@ - - 'nolks' 'nolinksearch' - 'lks' 'linksearch' - 'linksearch' 'lks' - boolean - off - -

- Limit searches to hyperlink text. This includes all elements - matched by the hinttags XPath. This behavior can also be - enabled by including \l in the search pattern, and - disabled by including \L. -

-
-
- 'nolpl' 'lpl' 'noloadplugins' 'loadplugins' diff --git a/common/locale/en-US/pattern.xml b/common/locale/en-US/pattern.xml index 8412af7b..7834747c 100644 --- a/common/locale/en-US/pattern.xml +++ b/common/locale/en-US/pattern.xml @@ -59,7 +59,7 @@
\c
Perform case insensitive search (default if searchcase=ignore).
\C
Perform case sensitive search (default if searchcase=match).
-
\l
Search only in links, as defined by hinttags. (default if linksearch is set).
+
\l
Search only in links, as defined by hinttags.
\L
Search the entire page.