mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 14:27:59 +01:00
Add a [j] Asciidoc quote tag for linking directly to help doc tags.
This commit is contained in:
@@ -1811,7 +1811,7 @@ window.liberator = liberator;
|
|||||||
window.addEventListener("liberatorHelpLink", function (event) {
|
window.addEventListener("liberatorHelpLink", function (event) {
|
||||||
let elem = event.target;
|
let elem = event.target;
|
||||||
|
|
||||||
if (/^(option|mapping|command)$/.test(elem.className))
|
if (/^(option|mapping|command|jump)$/.test(elem.className))
|
||||||
var tag = elem.textContent.replace(/\s.*/, "");
|
var tag = elem.textContent.replace(/\s.*/, "");
|
||||||
if (/^(mapping|command)$/.test(elem.className))
|
if (/^(mapping|command)$/.test(elem.className))
|
||||||
tag = tag.replace(/^\d+/, "");
|
tag = tag.replace(/^\d+/, "");
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ LOGO=<div style="text-align: center;"><span class="vimperator-logo"></span></div
|
|||||||
[c]=#command
|
[c]=#command
|
||||||
[m]=#mapping
|
[m]=#mapping
|
||||||
[a]=#argument
|
[a]=#argument
|
||||||
|
[j]=#jump
|
||||||
# FIXME: this prevents all asciidoc attribute processing
|
# FIXME: this prevents all asciidoc attribute processing
|
||||||
# ^obviously it doesn't? --stepnem
|
# ^obviously it doesn't? --stepnem
|
||||||
{|}=argument2
|
{|}=argument2
|
||||||
@@ -101,6 +102,7 @@ option=<a class="option" href="#">|</a>
|
|||||||
option2=<a class="option" href="#">'|'</a>
|
option2=<a class="option" href="#">'|'</a>
|
||||||
command=<a class="command" href="#">|</a>
|
command=<a class="command" href="#">|</a>
|
||||||
mapping=<a class="mapping" href="#">|</a>
|
mapping=<a class="mapping" href="#">|</a>
|
||||||
|
jump=<a class="jump" href="#">|</a>
|
||||||
argument=<span class="argument">|</span>
|
argument=<span class="argument">|</span>
|
||||||
# NOTE: in certain contexts the unescaped '#' is stripped. As we're ditching
|
# NOTE: in certain contexts the unescaped '#' is stripped. As we're ditching
|
||||||
# asciidoc I won't bother investigating --djk
|
# asciidoc I won't bother investigating --djk
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ heading:Key{nbsp}mappings,{nbsp}abbreviations,{nbsp}and{nbsp}user-defined{nbsp}c
|
|||||||
section:Key{nbsp}mapping[key-mapping,mapping,map,macro]
|
section:Key{nbsp}mapping[key-mapping,mapping,map,macro]
|
||||||
|
|
||||||
The key mapping commands can be used to either redefine the standard key
|
The key mapping commands can be used to either redefine the standard key
|
||||||
bindings or define new ones. A mapping consists of a key, or [o]key-sequence[o],
|
bindings or define new ones. A mapping consists of a key, or [j]key-sequence[j],
|
||||||
which is translated to a string of characters. Example:
|
which is translated to a string of characters. Example:
|
||||||
|
|
||||||
\{nbsp}[c]:map <F2> :echo new Date().toDateString()<CR>[c]
|
\{nbsp}[c]:map <F2> :echo new Date().toDateString()<CR>[c]
|
||||||
@@ -16,7 +16,7 @@ Keys can be mapped in four distinct modes:
|
|||||||
* Normal mode: When browsing normally --
|
* Normal mode: When browsing normally --
|
||||||
* Visual mode: When selecting text with the cursor keys --
|
* Visual mode: When selecting text with the cursor keys --
|
||||||
* Insert mode: When interacting with text fields on a website --
|
* Insert mode: When interacting with text fields on a website --
|
||||||
* Command-line mode: When typing into the vimperator command line. --
|
* Command-line mode: When typing into the Vimperator command line. --
|
||||||
|
|
||||||
Warning: Mappings are NOT saved between sessions, make sure you put them in your
|
Warning: Mappings are NOT saved between sessions, make sure you put them in your
|
||||||
vimperatorrc file!
|
vimperatorrc file!
|
||||||
@@ -34,7 +34,7 @@ subsection:Map{nbsp}commands[:map-commands]
|
|||||||
|:cm| |:cmap|
|
|:cm| |:cmap|
|
||||||
||:cm[ap] {lhs} {rhs}|| +
|
||:cm[ap] {lhs} {rhs}|| +
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
Map the [o]key-sequence[o] {lhs} to {rhs} for the applicable mode(s). The {rhs} is
|
Map the [j]key-sequence[j] {lhs} to {rhs} for the applicable mode(s). The {rhs} is
|
||||||
remapped, allowing for nested and recursive mappings.
|
remapped, allowing for nested and recursive mappings.
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ ________________________________________________________________________________
|
|||||||
|:cno| |:cnoremap|
|
|:cno| |:cnoremap|
|
||||||
||:cno[remap] {lhs} {rhs}|| +
|
||:cno[remap] {lhs} {rhs}|| +
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
Map the [o]key-sequence[o] {lhs} to {rhs} for the applicable mode(s). No remapping of
|
Map the [j]key-sequence[j] {lhs} to {rhs} for the applicable mode(s). No remapping of
|
||||||
the {rhs} is performed.
|
the {rhs} is performed.
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ number of keys to be used in mappings.
|
|||||||
|
|
||||||
* [c]<lt>[c], [c]\<[c], [c]<Space>[c], [c]\ [c] allow a literal [c]<[c] or space character.
|
* [c]<lt>[c], [c]\<[c], [c]<Space>[c], [c]\ [c] allow a literal [c]<[c] or space character.
|
||||||
* [c]\'[c], [c]\"[c] and [c]\\[c] must be used to avoid escaping issues when mapping a quote or backslash.
|
* [c]\'[c], [c]\"[c] and [c]\\[c] must be used to avoid escaping issues when mapping a quote or backslash.
|
||||||
* [c]<Left>[c] [c]<Right>[c] [c]<Up>[c] [c]<Down>[c] [c]<PageUp>[c] [c]<PageDown>[c] [c]<Esc>[c] [c]<CR>[c] (for carraige return/enter)
|
* [c]<Left>[c] [c]<Right>[c] [c]<Up>[c] [c]<Down>[c] [c]<PageUp>[c] [c]<PageDown>[c] [c]<Esc>[c] [c]<CR>[c] (for carriage return/enter)
|
||||||
* [c]<CapsLock>[c] [c]<NumLock>[c] [c]<Ins>[c] [c]<Del>[c] [c]<Tab>[c] [c]<BS>[c] (for a backspace)
|
* [c]<CapsLock>[c] [c]<NumLock>[c] [c]<Ins>[c] [c]<Del>[c] [c]<Tab>[c] [c]<BS>[c] (for a backspace)
|
||||||
* [c]<F1>[c] through [c]<F12>[c] work as expected
|
* [c]<F1>[c] through [c]<F12>[c] work as expected
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ E.g firefox -liberator "\++cmd=\'set exrc' +u=\'tempRcFile' \++noplugin"
|
|||||||
||+c={command}||
|
||+c={command}||
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
Execute a single Ex command after all initialization has been performed. See
|
Execute a single Ex command after all initialization has been performed. See
|
||||||
help:initialization[starting.html#Initialization].
|
[j]initialization[j].
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ ________________________________________________________________________________
|
|||||||
||\++cmd={command}||
|
||\++cmd={command}||
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
Execute a single Ex command before any initialization has been performed. See
|
Execute a single Ex command before any initialization has been performed. See
|
||||||
help:initialization[starting.html#Initialization].
|
[j]initialization[j].
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ duplicate the tab [count] times.
|
|||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
//TODO: should the tab commands be moved back here?
|
//TODO: should the tab commands be moved back here?
|
||||||
See help::open[browsing.html#opening] for other ways to open new tabs.
|
See [j]opening[j] for other ways to open new tabs.
|
||||||
|
|
||||||
section:Changing{nbsp}tabs[changing-tabs]
|
section:Changing{nbsp}tabs[changing-tabs]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user