1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 16:32:27 +01:00

move macro related commands and mappings to repeat.txt

This commit is contained in:
Doug Kearns
2008-05-29 20:34:21 +00:00
parent c18b594d6e
commit 4d3519c0a5
7 changed files with 62 additions and 83 deletions

View File

@@ -67,11 +67,11 @@ liberator.Search = function () //{{{
// set searchString, searchPattern, caseSensitive, linksOnly // set searchString, searchPattern, caseSensitive, linksOnly
function processUserPattern(pattern) function processUserPattern(pattern)
{ {
// strip off pattern terminator and offset //// strip off pattern terminator and offset
if (backwards) //if (backwards)
pattern = pattern.replace(/\?.*/, ""); // pattern = pattern.replace(/\?.*/, "");
else //else
pattern = pattern.replace(/\/.*/, ""); // pattern = pattern.replace(/\/.*/, "");
searchPattern = pattern; searchPattern = pattern;
@@ -292,7 +292,8 @@ liberator.Search = function () //{{{
this.find(command, backwards); this.find(command, backwards);
lastSearchBackwards = backwards; lastSearchBackwards = backwards;
lastSearchPattern = command.replace(backwards ? /\?.*/ : /\/.*/, ""); // XXX //lastSearchPattern = command.replace(backwards ? /\?.*/ : /\/.*/, ""); // XXX
lastSearchPattern = command;
lastSearchString = searchString; lastSearchString = searchString;
// TODO: move to find() when reverse incremental searching is kludged in // TODO: move to find() when reverse incremental searching is kludged in

View File

@@ -12,7 +12,7 @@ List mappings how to scroll the window.
section:Jumping{nbsp}to{nbsp}Elements[jumping] section:Jumping{nbsp}to{nbsp}Elements[jumping]
|gi| |gi| +
||[count]gi|| ||[count]gi||
________________________________________________________________________________ ________________________________________________________________________________
Focus last used input field. If there is no last input field, it focuses the Focus last used input field. If there is no last input field, it focuses the

View File

@@ -17,7 +17,7 @@ like for help::help[various.html#:help].
||:h[elp] {subject}|| + ||:h[elp] {subject}|| +
||<F1>|| ||<F1>||
____________________________________________________________________________ ____________________________________________________________________________
Open help window. Open help window.
The default section is shown unless {subject} is specified. The default section is shown unless {subject} is specified.
If you need help for a specific topic, try [c]:help overview[c]. If you need help for a specific topic, try [c]:help overview[c].
____________________________________________________________________________ ____________________________________________________________________________

View File

@@ -14,11 +14,11 @@ text editor. It has similar key bindings, and you could call it a modal
web browser, as key bindings differ according to which mode you are in. web browser, as key bindings differ according to which mode you are in.
|warning| + |warning| +
Warning: Warning:
To provide the most authentic Vim experience, the Firefox menubar and toolbar were hidden. + To provide the most authentic Vim experience, the Firefox menubar and toolbar were hidden. +
If you really need them, type: [c]:set guioptions+=mT[c] to get them back. + If you really need them, type: [c]:set guioptions+=mT[c] to get them back. +
If you don't like Vimperator at all, you can uninstall it by typing If you don't like Vimperator at all, you can uninstall it by typing
[c]:addons[c] and remove/disable it. + [c]:addons[c] and remove/disable it. +
If you like it, but can't remember the shortcuts, press [m]F1[m] or If you like it, but can't remember the shortcuts, press [m]F1[m] or
[c]:help[c] to get this help window back. [c]:help[c] to get this help window back.

View File

@@ -107,7 +107,7 @@ ________________________________________________________________________________
|:set-!| |:set-!|
||:se[t]! {preference}={value}|| + ||:se[t]! {preference}={value}|| +
________________________________________________________________________________ ________________________________________________________________________________
Change any Firefox {preference} (those in the about:config window). You can also Change any Firefox {preference} (those in the about:config window). You can also
reset/delete those preferences with [c]:set! {preference}&[c]. reset/delete those preferences with [c]:set! {preference}&[c].
________________________________________________________________________________ ________________________________________________________________________________
@@ -435,7 +435,7 @@ ____
// 'pvh' // 'pvh'
// Default height for preview window // Default height for preview window
// number (default: 10) // number (default: 10)
// //
// Value must be between 1 and 50. If the value is too high, completions may cover the command-line. Close the preview window with :pclose. // Value must be between 1 and 50. If the value is too high, completions may cover the command-line. Close the preview window with :pclose.
// NOTE: Option currently disabled // NOTE: Option currently disabled
// 'previewheight' // 'previewheight'
@@ -452,7 +452,7 @@ ____
|\'scr'| |\'scroll'| |\'scr'| |\'scroll'|
||'scroll' 'scr'|| number (default 0) ||'scroll' 'scr'|| number (default 0)
____ ____
Number of lines to scroll with C-u and C-d commands. Number of lines to scroll with C-u and C-d commands.
The number of lines scrolled defaults to half the window size. The number of lines scrolled defaults to half the window size.
When a {count} is specified to the <C-u> or <C-d> commands this is used to set the value of 'scroll' and also used for the current command. The value can be reset to half the window height with :set scroll=0. When a {count} is specified to the <C-u> or <C-d> commands this is used to set the value of 'scroll' and also used for the current command. The value can be reset to half the window height with :set scroll=0.
____ ____

View File

@@ -9,25 +9,40 @@ section:Macros[macros]
|q| |q|
||q {arg}|| + ||q {arg}|| +
____________________________________________________________________________ ____________________________________________________________________________
Record a key sequence into a macro. Record a key sequence into a macro.
Available macros are {0-9a-zA-Z} (uppercase to append). Available macros are {0-9a-zA-Z} (uppercase to append).
Type 'q' to stop recording. Type 'q' to stop recording.
____________________________________________________________________________ ____________________________________________________________________________
|:macros| +
||:mac[ros] [regex]||
________________________________________________________________________________
List recorded macros matching the optional regular expression. If no regex is
given, list all.
________________________________________________________________________________
|:delmac| |:delmacros|
||:delmac[ros] [regex]|| +
________________________________________________________________________________
Delete recorded macros matching a regular expression.
________________________________________________________________________________
|@| |@@| |:play| |@| |@@| |:play|
||[count]@ {arg}|| + ||[count]@ {arg}|| +
||[count]@@|| + ||[count]@@|| +
||:play {arg}|| + ||:pl[ay] {arg}|| +
____________________________________________________________________________ ____________________________________________________________________________
Plays the contents of macro {0-9a-z}. Plays the contents of macro {0-9a-z}.
@@ replays a previous executed macro. @@ replays a previous executed macro.
:play {arg} plays a recorded macro. :play {arg} plays a recorded macro.
____________________________________________________________________________ ____________________________________________________________________________
section:Profiling[profiling] section:Profiling[profile,profiling]
:time ... :time ...

View File

@@ -27,7 +27,7 @@ section:Online{nbsp}Help[online-help]
||:h[elp] {subject}|| + ||:h[elp] {subject}|| +
||<F1>|| ||<F1>||
________________________________________________________________________________ ________________________________________________________________________________
Open help window. Open help window.
The default section is shown unless {subject} is specified. The default section is shown unless {subject} is specified.
If you need help for a specific topic, try [c]:help overview[c]. If you need help for a specific topic, try [c]:help overview[c].
____________________________________________________________________________ ____________________________________________________________________________
@@ -97,7 +97,7 @@ cursor and can move around. If you want to select text in this mode, press
________________________________________________________________________________ ________________________________________________________________________________
|<C-c>| |<C-c>|
||<C-c>|| ||<C-c>||
________________________________________________________________________________ ________________________________________________________________________________
Stop loading the current web page. Stop loading the current web page.
@@ -198,7 +198,7 @@ external editor must be able to download and open files from a remote URL.
________________________________________________________________________________ ________________________________________________________________________________
|gh| |gh|
||gh|| ||gh||
________________________________________________________________________________ ________________________________________________________________________________
Go home. Opens the homepage in the current tab. Go home. Opens the homepage in the current tab.
@@ -241,14 +241,14 @@ Works like [m]P[m], but inverts the 'activate' option.
________________________________________________________________________________ ________________________________________________________________________________
|g^| |g0| |g^| |g0|
||g0|| ||g0||
________________________________________________________________________________ ________________________________________________________________________________
Go to the first tab. TODO: Unify with :tabfirst. Go to the first tab. TODO: Unify with :tabfirst.
________________________________________________________________________________ ________________________________________________________________________________
|g$| |g$|
||g$|| ||g$||
________________________________________________________________________________ ________________________________________________________________________________
Go to the last tab. TODO: Unify with :tablast. Go to the last tab. TODO: Unify with :tablast.
@@ -334,7 +334,7 @@ Whether the new buffer is activated, depends on the 'activate' option.
________________________________________________________________________________ ________________________________________________________________________________
|r| |r|
||r|| ||r||
________________________________________________________________________________ ________________________________________________________________________________
Force reloading of the current page. Force reloading of the current page.
@@ -479,7 +479,7 @@ Scroll to the absolute left of the document. Unlike in Vim, [m]0[m] and [m]^[m]
________________________________________________________________________________ ________________________________________________________________________________
|$| |$|
||$|| ||$||
________________________________________________________________________________ ________________________________________________________________________________
Scroll to the absolute right of the document Scroll to the absolute right of the document
@@ -727,29 +727,14 @@ opposite direction.
________________________________________________________________________________ ________________________________________________________________________________
|q| + |\*|
||q {arg}||
________________________________________________________________________________
Record a keysequence into a macro. Available macros are {0-9a-zA-Z} (uppercase
to append).type 'q' to stop recording.
________________________________________________________________________________
|@|
||[count]@ {arg}||
________________________________________________________________________________
Execute the contents of macro {0-9a-z}. @@ repeats the previous @{0-9a-z}
________________________________________________________________________________
|\*|
||\*|| ||\*||
________________________________________________________________________________ ________________________________________________________________________________
Search forward for the next word under the cursor. Search forward for the next word under the cursor.
________________________________________________________________________________ ________________________________________________________________________________
|\#| |\#|
||\#|| ||\#||
________________________________________________________________________________ ________________________________________________________________________________
Search backward for the previous word under the cursor. Search backward for the previous word under the cursor.
@@ -784,7 +769,7 @@ the left after removing the current tab.
________________________________________________________________________________ ________________________________________________________________________________
|:beep| |:beep|
||:beep|| ||:beep||
________________________________________________________________________________ ________________________________________________________________________________
Play a system beep. Play a system beep.
@@ -855,7 +840,7 @@ key on a string to complete the URL which you want to delete.
The following options WILL be interpreted in the future: The following options WILL be interpreted in the future:
* [!] a special version to delete ALL bookmarks * [!] a special version to delete ALL bookmarks
________________________________________________________________________________ ________________________________________________________________________________
@@ -866,7 +851,7 @@ Change the current directory. [c]:cd -[c] changes to the last directory.
________________________________________________________________________________ ________________________________________________________________________________
|:pw| |:pwd| |:pw| |:pwd|
||:pw[d]|| ||:pw[d]||
________________________________________________________________________________ ________________________________________________________________________________
Print the current directory name. Print the current directory name.
@@ -1055,7 +1040,7 @@ for Insert mode only.
________________________________________________________________________________ ________________________________________________________________________________
|:una| |:unabbreviate| |:una| |:unabbreviate|
||:una[bbreviate] {lhs}|| ||:una[bbreviate] {lhs}||
________________________________________________________________________________ ________________________________________________________________________________
Remove an abbreviation. Remove an abbreviation.
@@ -1078,21 +1063,21 @@ Insert mode only.
________________________________________________________________________________ ________________________________________________________________________________
|:abc| |:abclear| |:abc| |:abclear|
||:abc[lear]|| ||:abc[lear]||
________________________________________________________________________________ ________________________________________________________________________________
Remove all abbreviations. Remove all abbreviations.
________________________________________________________________________________ ________________________________________________________________________________
|:cabc| |:cabclear| |:cabc| |:cabclear|
||:cabc[lear]|| ||:cabc[lear]||
________________________________________________________________________________ ________________________________________________________________________________
Remove all abbreviations for Command-line mode. Remove all abbreviations for Command-line mode.
________________________________________________________________________________ ________________________________________________________________________________
|:iabc| |:iabclear| |:iabc| |:iabclear|
||:iabc[lear]|| ||:iabc[lear]||
________________________________________________________________________________ ________________________________________________________________________________
Remove all abbreviations for Insert mode. Remove all abbreviations for Insert mode.
@@ -1114,28 +1099,6 @@ Add {cmd} to the list of commands Vimperator will execute on {event}:
________________________________________________________________________________ ________________________________________________________________________________
|:macros| +
||:mac[ros] [regex]||
________________________________________________________________________________
List recorded macros matching the optional regular expression. If no regex is
given, list all.
________________________________________________________________________________
|:delmac| |:delmacros|
||:delmac[ros] [regex]|| +
________________________________________________________________________________
Delete recorded macros matching a regular expression.
________________________________________________________________________________
|:pl| |:play|
||:pl[ay] <macro>||
________________________________________________________________________________
Play a macro.
________________________________________________________________________________
|:map| |:map|
||:map {lhs} {rhs}|| + ||:map {lhs} {rhs}|| +
||:map {lhs}|| + ||:map {lhs}|| +
@@ -1193,7 +1156,7 @@ by [c]:imap[c] or [c]:inoremap[c] are cleared.
________________________________________________________________________________ ________________________________________________________________________________
|:ma| |:mark| |:ma| |:mark|
||:ma[rk] {a-zA-Z}|| ||:ma[rk] {a-zA-Z}||
________________________________________________________________________________ ________________________________________________________________________________
Mark current location within the web page. Mark current location within the web page.
@@ -1271,7 +1234,7 @@ Show various page information. See :help 'pageinfo' for available options.
________________________________________________________________________________ ________________________________________________________________________________
|:pc| |:pclose| |:pc| |:pclose|
||:pc[lose]|| ||:pc[lose]||
________________________________________________________________________________ ________________________________________________________________________________
Close preview window on bottom of screen. Close preview window on bottom of screen.
@@ -1350,7 +1313,7 @@ directory, skipping the Save as... prompt
________________________________________________________________________________ ________________________________________________________________________________
|:sbcl| |:sbclose| |:sbcl| |:sbclose|
||:sbcl[ose]|| ||:sbcl[ose]||
________________________________________________________________________________ ________________________________________________________________________________
Close the sidebar window. Close the sidebar window.
@@ -1399,7 +1362,7 @@ specified, errors are not printed.
________________________________________________________________________________ ________________________________________________________________________________
|:st| |:stop| |:st| |:stop|
||:st[op]|| ||:st[op]||
________________________________________________________________________________ ________________________________________________________________________________
Stop loading. Stop loading current web page. Stop loading. Stop loading current web page.
@@ -1418,7 +1381,7 @@ support it, currently:
________________________________________________________________________________ ________________________________________________________________________________
|:tabl| |:tablast| |:tabl| |:tablast|
||:tabl[ast]|| ||:tabl[ast]||
________________________________________________________________________________ ________________________________________________________________________________
Switch to the last tab. Switch to the last tab.
@@ -1444,7 +1407,7 @@ selected and {count} is not specified.
________________________________________________________________________________ ________________________________________________________________________________
|:tabo| |:tabonly| |:tabo| |:tabonly|
||:tabo[nly]|| ||:tabo[nly]||
________________________________________________________________________________ ________________________________________________________________________________
Close all other tabs. Close all other tabs.
@@ -1459,7 +1422,7 @@ first tab to the last tab.
________________________________________________________________________________ ________________________________________________________________________________
|:tabfir| |:tabfirst| |:tabr| |:tabrewind| |:tabfir| |:tabfirst| |:tabr| |:tabrewind|
||:tabr[ewind]|| + ||:tabr[ewind]|| +
||:tabfir[st]|| ||:tabfir[st]||
Switch to the first tab. Switch to the first tab.
@@ -1504,21 +1467,21 @@ Deletes the variable {name}. Several variable names can be given.
________________________________________________________________________________ ________________________________________________________________________________
|:unm| |:unmap| |:unm| |:unmap|
||:unm[ap] {lhs}|| ||:unm[ap] {lhs}||
________________________________________________________________________________ ________________________________________________________________________________
Remove the mapping of {lhs}. Remove the mapping of {lhs}.
________________________________________________________________________________ ________________________________________________________________________________
|:cunm| |:cunmap| |:cunm| |:cunmap|
||:cunm[ap] {lhs}|| ||:cunm[ap] {lhs}||
________________________________________________________________________________ ________________________________________________________________________________
Remove the mapping of {lhs} (in command-line mode). Remove the mapping of {lhs} (in command-line mode).
________________________________________________________________________________ ________________________________________________________________________________
|:iunm| |:iunmap| |:iunm| |:iunmap|
||:iunm[ap] {lhs}|| ||:iunm[ap] {lhs}||
________________________________________________________________________________ ________________________________________________________________________________
Remove the mapping of {lhs} (in insert mode). Remove the mapping of {lhs} (in insert mode).
@@ -1541,7 +1504,7 @@ external editor.
________________________________________________________________________________ ________________________________________________________________________________
|:wc| |:wclose| |:winc| |:winclose| |:wc| |:wclose| |:winc| |:winclose|
||:winc[ose] [url] [, url]|| + ||:winc[ose] [url] [, url]|| +
________________________________________________________________________________ ________________________________________________________________________________
Close window. Close window.