1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-31 18:02:27 +01:00

Add "w" and "W" Normal mode mappings.

These work just like o/O and t/T but for new windows.
This commit is contained in:
Doug Kearns
2009-02-28 22:17:59 +11:00
parent 6b34e50579
commit 62bc7fb9b5
3 changed files with 19 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
* version 2.1 (probably) * version 2.1 (probably)
* add :silent * add :silent
* add $MY_VIMPERATORRC * add $MY_VIMPERATORRC
* add ' and " local marks
* add "w" and "W" Normal mode mappings for symmetry with o/O and t/T
2008-XX-XX: 2008-XX-XX:
* version 2.0 (probably) * version 2.0 (probably)

View File

@@ -210,6 +210,14 @@ const config = { //{{{
"Open one or more URLs in a new tab, based on current location", "Open one or more URLs in a new tab, based on current location",
function () { commandline.open(":", "tabopen " + buffer.URL, modes.EX); }); function () { commandline.open(":", "tabopen " + buffer.URL, modes.EX); });
mappings.add([modes.NORMAL], ["w"],
"Open one or more URLs in a new window",
function () { commandline.open(":", "winopen ", modes.EX); });
mappings.add([modes.NORMAL], ["W"],
"Open one or more URLs in a new window, based on current location",
function () { commandline.open(":", "winopen " + buffer.URL, modes.EX); });
mappings.add([modes.NORMAL], mappings.add([modes.NORMAL],
["<C-a>"], "Increment last number in URL", ["<C-a>"], "Increment last number in URL",
function (count) { incrementURL(count > 1 ? count : 1); }, function (count) { incrementURL(count > 1 ? count : 1); },

View File

@@ -102,11 +102,20 @@ ________________________________________________________________________________
|:winopen| |:wopen| |:winedit| |:winopen| |:wopen| |:winedit|
||:wino[pen][!] [a][arg1][a], [a][arg2][a], ...|| + ||:wino[pen][!] [a][arg1][a], [a][arg2][a], ...|| +
||w||
________________________________________________________________________________ ________________________________________________________________________________
Just like [c]:tabopen[c] but opens the resulting web page(s) in a new window. Just like [c]:tabopen[c] but opens the resulting web page(s) in a new window.
________________________________________________________________________________ ________________________________________________________________________________
|W| +
||W||
________________________________________________________________________________
Open one or more URLs in a new window based on current location. Works like
[m]w[m] but preselects current URL in the [c]:winopen[c] query.
________________________________________________________________________________
|<MiddleMouse>| |p| + |<MiddleMouse>| |p| +
||p|| ||p||
________________________________________________________________________________ ________________________________________________________________________________