mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-20 04:04:12 +01:00
Split Map.flags into individual properties of Map.
This commit is contained in:
@@ -1,7 +1,18 @@
|
||||
2009-XX-XX:
|
||||
* version 2.2a1pre
|
||||
* IMPORTANT: Map.flags has been replaced with individual properties.
|
||||
Mappings defined in plugins with mappings.add will need to be updated.
|
||||
E.g.
|
||||
mappings.add(...,
|
||||
{ flags: Mappings.flags.ARGUMENT |
|
||||
Mappings.flags.COUNT |
|
||||
Mappings.flags.MOTION |
|
||||
Mappings.flags.ALLOW_EVENT_ROUTING });
|
||||
is now
|
||||
mappings.add(...,
|
||||
{ arg: true, count: true, motion: true, route: true });
|
||||
* IMPORTANT: shifted key notation now matches Vim's behaviour. E.g. <C-a>
|
||||
and <C-A> are equivalent, to map the uppercase character use <C-S-A>.
|
||||
and <C-A> are equivalent, to map the uppercase character use <C-S-A>. - Is this still true, or going to be true? --djk
|
||||
* add -description option to :command
|
||||
* command-line options are now supported via the host application's
|
||||
-liberator option
|
||||
|
||||
@@ -233,12 +233,12 @@ const config = { //{{{
|
||||
mappings.add([modes.NORMAL],
|
||||
["<C-a>"], "Increment last number in URL",
|
||||
function (count) { incrementURL(Math.max(count, 1)); },
|
||||
{ flags: Mappings.flags.COUNT });
|
||||
{ count: true });
|
||||
|
||||
mappings.add([modes.NORMAL],
|
||||
["<C-x>"], "Decrement last number in URL",
|
||||
function (count) { incrementURL(-Math.max(count, 1)); },
|
||||
{ flags: Mappings.flags.COUNT });
|
||||
{ count: true });
|
||||
|
||||
mappings.add([modes.NORMAL], ["~"],
|
||||
"Open home directory",
|
||||
@@ -294,7 +294,7 @@ const config = { //{{{
|
||||
else
|
||||
liberator.open(url);
|
||||
},
|
||||
{ flags: Mappings.flags.COUNT });
|
||||
{ count: true });
|
||||
|
||||
mappings.add([modes.NORMAL], ["gU"],
|
||||
"Go to the root of the website",
|
||||
|
||||
Reference in New Issue
Block a user