mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-23 01:03:33 +01:00
start of a caret mode
This commit is contained in:
@@ -309,6 +309,18 @@ function Mappings() //{{{
|
||||
help: "In command line mode, you can perform extended commands, which may require arguments."
|
||||
}
|
||||
));
|
||||
addDefaultMap(new Map(vimperator.modes.NORMAL, ["i"],
|
||||
function()
|
||||
{
|
||||
Options.setFirefoxPref("accessibility.browsewithcaret", true);
|
||||
vimperator.setMode(vimperator.modes.CARET, null);
|
||||
},
|
||||
{
|
||||
short_help: "Start caret mode",
|
||||
help: "This mode resembles the vim normal mode where you see a text cursor and can move around. " +
|
||||
"NOTE: Movement keys are not really working for the moment."
|
||||
}
|
||||
));
|
||||
addDefaultMap(new Map(vimperator.modes.NORMAL, ["I"],
|
||||
function() { vimperator.addMode(null, vimperator.modes.ESCAPE_ALL_KEYS); },
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user