mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:08:00 +01:00
Normalise the use of "regexp(s)" vs "regex(es)".
"regex" won the Google battle.
This commit is contained in:
@@ -121,7 +121,7 @@ function Browser() //{{{
|
|||||||
}
|
}
|
||||||
|
|
||||||
options.add(["urlseparator"],
|
options.add(["urlseparator"],
|
||||||
"Set the separator regexp used to separate multiple URL args",
|
"Set the separator regex used to separate multiple URL args",
|
||||||
"string", ",\\s");
|
"string", ",\\s");
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////}}}
|
/////////////////////////////////////////////////////////////////////////////}}}
|
||||||
|
|||||||
@@ -1137,7 +1137,7 @@ function Buffer() //{{{
|
|||||||
*/
|
*/
|
||||||
followDocumentRelationship: function (rel)
|
followDocumentRelationship: function (rel)
|
||||||
{
|
{
|
||||||
let regexps = options.get(rel + "pattern").values
|
let regexes = options.get(rel + "pattern").values
|
||||||
.map(function (re) RegExp(re, "i"));
|
.map(function (re) RegExp(re, "i"));
|
||||||
|
|
||||||
function followFrame(frame)
|
function followFrame(frame)
|
||||||
@@ -1167,7 +1167,7 @@ function Buffer() //{{{
|
|||||||
|
|
||||||
// TODO: this should probably use the default 'hinttags' value. --djk
|
// TODO: this should probably use the default 'hinttags' value. --djk
|
||||||
let res = buffer.evaluateXPath(options["hinttags"], frame.document);
|
let res = buffer.evaluateXPath(options["hinttags"], frame.document);
|
||||||
for (let [,regex] in Iterator(regexps))
|
for (let [,regex] in Iterator(regexes))
|
||||||
{
|
{
|
||||||
for (let i in util.range(res.snapshotLength, 0, -1))
|
for (let i in util.range(res.snapshotLength, 0, -1))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -859,7 +859,7 @@ function CommandLine() //{{{
|
|||||||
// At the moment, adding "<Tab>" breaks tab completion. Adding
|
// At the moment, adding "<Tab>" breaks tab completion. Adding
|
||||||
// "<CR>" has no effect.
|
// "<CR>" has no effect.
|
||||||
// TODO: Make non-keyword recognition smarter so that there need not
|
// TODO: Make non-keyword recognition smarter so that there need not
|
||||||
// be two lists of the same characters (one here and a regexp in
|
// be two lists of the same characters (one here and a regex in
|
||||||
// mappings.js)
|
// mappings.js)
|
||||||
mappings.add(myModes,
|
mappings.add(myModes,
|
||||||
["<Space>", '"', "'"], "Expand command line abbreviation",
|
["<Space>", '"', "'"], "Expand command line abbreviation",
|
||||||
|
|||||||
@@ -167,7 +167,7 @@
|
|||||||
* add :pagestyle command to allow for switching between alternate style sheets
|
* add :pagestyle command to allow for switching between alternate style sheets
|
||||||
* add :b# to select the alternate buffer
|
* add :b# to select the alternate buffer
|
||||||
* add :tabduplicate command
|
* add :tabduplicate command
|
||||||
* new 'urlseparator' option for specifying the regexp used to split the arg to
|
* new 'urlseparator' option for specifying the regex used to split the arg to
|
||||||
:open, :tabopen and :winopen
|
:open, :tabopen and :winopen
|
||||||
* :set editor now accepts quoting/escaping to use an editor with spaces in the path
|
* :set editor now accepts quoting/escaping to use an editor with spaces in the path
|
||||||
* support for :%foo as a count for commands (not yet widely used)
|
* support for :%foo as a count for commands (not yet widely used)
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ Available {events}:
|
|||||||
|
|
||||||
{pat} is a regular expression, use .* if you want to match all URLs.
|
{pat} is a regular expression, use .* if you want to match all URLs.
|
||||||
|
|
||||||
Note: This differs from Vim which uses a glob rather than a regexp for {pat}.
|
Note: This differs from Vim which uses a glob rather than a regex for {pat}.
|
||||||
|
|
||||||
The following keywords are available where relevant:
|
The following keywords are available where relevant:
|
||||||
|
|
||||||
|
|||||||
@@ -321,7 +321,7 @@ section:Options[option-index]
|
|||||||
||'smartcase'|| Override the 'ignorecase' option if the pattern contains uppercase characters +
|
||'smartcase'|| Override the 'ignorecase' option if the pattern contains uppercase characters +
|
||||||
||'suggestengines'|| Engine Alias which has a feature of suggest +
|
||'suggestengines'|| Engine Alias which has a feature of suggest +
|
||||||
||'titlestring'|| Change the title of the window +
|
||'titlestring'|| Change the title of the window +
|
||||||
||'urlseparator'|| Set the separator regexp used to separate multiple URL args +
|
||'urlseparator'|| Set the separator regex used to separate multiple URL args +
|
||||||
||'usermode'|| Show current website with a minimal style sheet to make it easily accessible +
|
||'usermode'|| Show current website with a minimal style sheet to make it easily accessible +
|
||||||
||'verbose'|| Define which info messages are displayed +
|
||'verbose'|| Define which info messages are displayed +
|
||||||
||'visualbell'|| Use visual bell instead of beeping on errors +
|
||'visualbell'|| Use visual bell instead of beeping on errors +
|
||||||
|
|||||||
@@ -755,8 +755,8 @@ ____
|
|||||||
|\'urlseparator'|
|
|\'urlseparator'|
|
||||||
||'urlseparator'|| string (default: ",\s")
|
||'urlseparator'|| string (default: ",\s")
|
||||||
____
|
____
|
||||||
Set the separator regexp used to separate multiple URL args. Multiple arguments
|
Set the separator regex used to separate multiple URL args. Multiple arguments
|
||||||
can be specified for [c]:open[c], and similar commands, using this regexp as
|
can be specified for [c]:open[c], and similar commands, using this regex as
|
||||||
the separator. Using whitespace alone is not generally useful since it is often
|
the separator. Using whitespace alone is not generally useful since it is often
|
||||||
contained in a single argument. E.g. [c]:open linus torvalds[c] should perform
|
contained in a single argument. E.g. [c]:open linus torvalds[c] should perform
|
||||||
a single search for the key words "linus" and "torvalds"
|
a single search for the key words "linus" and "torvalds"
|
||||||
@@ -806,7 +806,7 @@ ____
|
|||||||
List of file patterns to ignore when completing files. E.g. to ignore object
|
List of file patterns to ignore when completing files. E.g. to ignore object
|
||||||
files and Vim swap files [c]:set wildignore=".*\.o,\..*\.s[a-z]\\{2}"[c]
|
files and Vim swap files [c]:set wildignore=".*\.o,\..*\.s[a-z]\\{2}"[c]
|
||||||
|
|
||||||
Note: Unlike Vim each pattern is a regexp rather than a glob.
|
Note: Unlike Vim each pattern is a regex rather than a glob.
|
||||||
____
|
____
|
||||||
|
|
||||||
|
|
||||||
@@ -852,7 +852,7 @@ ____
|
|||||||
____
|
____
|
||||||
(default: [\.,!\?:;/\\"\^\$%&?\(\)\[\]\\{\\}<>#\\*\+\\|=~ _\\-])
|
(default: [\.,!\?:;/\\"\^\$%&?\(\)\[\]\\{\\}<>#\\*\+\\|=~ _\\-])
|
||||||
|
|
||||||
A regexp which defines the word separators which are used for the
|
A regex which defines the word separators which are used for the
|
||||||
'hintmatching' types "wordstartswith" and "firstletters" to split the words in
|
'hintmatching' types "wordstartswith" and "firstletters" to split the words in
|
||||||
the text of a link.
|
the text of a link.
|
||||||
____
|
____
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ heading:Text{nbsp}search{nbsp}commands[text-search-commands]
|
|||||||
|
|
||||||
Vimperator provides a Vim-like interface to Firefox's standard text search
|
Vimperator provides a Vim-like interface to Firefox's standard text search
|
||||||
functionality. There is no support for using regular expressions in search
|
functionality. There is no support for using regular expressions in search
|
||||||
commands as Firefox does not provide native regexp support. It is unlikely that
|
commands as Firefox does not provide native regex support. It is unlikely that
|
||||||
this will ever be available.
|
this will ever be available.
|
||||||
|
|
||||||
|/| +
|
|/| +
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ ____________________________________________________________________________
|
|||||||
||:mac[ros] [a][pat][a]|| +
|
||:mac[ros] [a][pat][a]|| +
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
List recorded macros matching the optional regular expression [a][pat][a]. If
|
List recorded macros matching the optional regular expression [a][pat][a]. If
|
||||||
no regexp is given, list all macros.
|
no regex is given, list all macros.
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ Available {events}:
|
|||||||
|
|
||||||
{pat} is a regular expression, use .* if you want to match all URLs.
|
{pat} is a regular expression, use .* if you want to match all URLs.
|
||||||
|
|
||||||
Note: This differs from Vim which uses a glob rather than a regexp for {pat}.
|
Note: This differs from Vim which uses a glob rather than a regex for {pat}.
|
||||||
|
|
||||||
The following keywords are available where relevant:
|
The following keywords are available where relevant:
|
||||||
|
|
||||||
|
|||||||
@@ -368,7 +368,7 @@ section:Options[option-index]
|
|||||||
||'smartcase'|| Override the 'ignorecase' option if the pattern contains uppercase characters +
|
||'smartcase'|| Override the 'ignorecase' option if the pattern contains uppercase characters +
|
||||||
||'suggestengines'|| Engine Alias which has a feature of suggest +
|
||'suggestengines'|| Engine Alias which has a feature of suggest +
|
||||||
||'titlestring'|| Change the title of the window +
|
||'titlestring'|| Change the title of the window +
|
||||||
||'urlseparator'|| Set the separator regexp used to separate multiple URL args +
|
||'urlseparator'|| Set the separator regex used to separate multiple URL args +
|
||||||
||'usermode'|| Show current website with a minimal style sheet to make it easily accessible +
|
||'usermode'|| Show current website with a minimal style sheet to make it easily accessible +
|
||||||
||'verbose'|| Define which info messages are displayed +
|
||'verbose'|| Define which info messages are displayed +
|
||||||
||'visualbell'|| Use visual bell instead of beeping on errors +
|
||'visualbell'|| Use visual bell instead of beeping on errors +
|
||||||
|
|||||||
@@ -762,8 +762,8 @@ ____
|
|||||||
|\'urlseparator'|
|
|\'urlseparator'|
|
||||||
||'urlseparator'|| string (default: ",\s")
|
||'urlseparator'|| string (default: ",\s")
|
||||||
____
|
____
|
||||||
Set the separator regexp used to separate multiple URL args. Multiple arguments
|
Set the separator regex used to separate multiple URL args. Multiple arguments
|
||||||
can be specified for [c]:open[c], and similar commands, using this regexp as
|
can be specified for [c]:open[c], and similar commands, using this regex as
|
||||||
the separator. Using whitespace alone is not generally useful since it is often
|
the separator. Using whitespace alone is not generally useful since it is often
|
||||||
contained in a single argument. E.g. [c]:open linus torvalds[c] should perform
|
contained in a single argument. E.g. [c]:open linus torvalds[c] should perform
|
||||||
a single search for the key words "linus" and "torvalds"
|
a single search for the key words "linus" and "torvalds"
|
||||||
@@ -813,7 +813,7 @@ ____
|
|||||||
List of file patterns to ignore when completing files. E.g. to ignore object
|
List of file patterns to ignore when completing files. E.g. to ignore object
|
||||||
files and Vim swap files [c]:set wildignore=".*\.o,\..*\.s[a-z]\\{2}"[c]
|
files and Vim swap files [c]:set wildignore=".*\.o,\..*\.s[a-z]\\{2}"[c]
|
||||||
|
|
||||||
Note: Unlike Vim each pattern is a regexp rather than a glob.
|
Note: Unlike Vim each pattern is a regex rather than a glob.
|
||||||
____
|
____
|
||||||
|
|
||||||
|
|
||||||
@@ -859,7 +859,7 @@ ____
|
|||||||
____
|
____
|
||||||
(default: [\.,!\?:;/\\"\^\$%&?\(\)\[\]\\{\\}<>#\\*\+\\|=~ _\\-])
|
(default: [\.,!\?:;/\\"\^\$%&?\(\)\[\]\\{\\}<>#\\*\+\\|=~ _\\-])
|
||||||
|
|
||||||
A regexp which defines the word separators which are used for the
|
A regex which defines the word separators which are used for the
|
||||||
'hintmatching' types "wordstartswith" and "firstletters" to split the words in
|
'hintmatching' types "wordstartswith" and "firstletters" to split the words in
|
||||||
the text of a link.
|
the text of a link.
|
||||||
____
|
____
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ heading:Text{nbsp}search{nbsp}commands[text-search-commands]
|
|||||||
|
|
||||||
Xulmus provides a Vim-like interface to Songbird's standard text search
|
Xulmus provides a Vim-like interface to Songbird's standard text search
|
||||||
functionality. There is no support for using regular expressions in search
|
functionality. There is no support for using regular expressions in search
|
||||||
commands as Songbird does not provide native regexp support. It is unlikely that
|
commands as Songbird does not provide native regex support. It is unlikely that
|
||||||
this will ever be available.
|
this will ever be available.
|
||||||
|
|
||||||
|/| +
|
|/| +
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ ____________________________________________________________________________
|
|||||||
||:mac[ros] [a][pat][a]|| +
|
||:mac[ros] [a][pat][a]|| +
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
List recorded macros matching the optional regular expression [a][pat][a]. If
|
List recorded macros matching the optional regular expression [a][pat][a]. If
|
||||||
no regexp is given, list all macros.
|
no regex is given, list all macros.
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user