1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 14:22: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

@@ -9,16 +9,31 @@ 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}.
@@ -27,7 +42,7 @@ Plays the contents of macro {0-9a-z}.
:play {arg} plays a recorded macro. :play {arg} plays a recorded macro.
____________________________________________________________________________ ____________________________________________________________________________
section:Profiling[profiling] section:Profiling[profile,profiling]
:time ... :time ...

View File

@@ -727,21 +727,6 @@ 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}
________________________________________________________________________________
|\*| |\*|
||\*|| ||\*||
________________________________________________________________________________ ________________________________________________________________________________
@@ -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}|| +