1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 17:34:12 +01:00

- g<esc> doesn't beep anymore

- /<up><down> searches for the changed string
This commit is contained in:
Martin Stubenschrott
2007-09-24 12:41:59 +00:00
parent 2550e5d736
commit ca3f4282b3
3 changed files with 10 additions and 14 deletions

View File

@@ -735,11 +735,14 @@ function Events() //{{{
vimperator.input.pendingArgMap = null;
vimperator.input.pendingMotionMap = null;
stop = false; // command was not a vimperator command, maybe it is a firefox command
if (key != "<Esc>" && key != "<C-[>")
{
stop = false; // command was not a vimperator command, maybe it is a firefox command
// TODO: see if this check is needed or are all motion commands already mapped in these modes?
if (vimperator.mode != vimperator.modes.INSERT && vimperator.mode != vimperator.modes.COMMAND_LINE)
vimperator.beep();
// TODO: see if this check is needed or are all motion commands already mapped in these modes?
if (vimperator.mode != vimperator.modes.INSERT && vimperator.mode != vimperator.modes.COMMAND_LINE)
vimperator.beep();
}
}
if (stop)

View File

@@ -306,7 +306,7 @@ function Mappings() //{{{
vimperator.modes.INSERT,
vimperator.modes.VISUAL,
vimperator.modes.HINTS,
//vimperator.modes.COMMAND_LINE,
vimperator.modes.COMMAND_LINE,
vimperator.modes.CARET,
vimperator.modes.TEXTAREA];
var any_non_insertmode = [vimperator.modes.NORMAL,
@@ -1295,13 +1295,6 @@ function Mappings() //{{{
always_active: true
}
));
/*addDefaultMap(new Map([vimperator.modes.HINTS], ["<Esc>", "<C-[>", "<C-c>"],
function() { ; },
{
cancel_mode: true,
always_active: true
}
));*/
// }}}
// Caret mode

View File

@@ -386,7 +386,6 @@ function CommandLine() //{{{
var mode = cur_extended_mode; // save it here, as setMode() resets it
history.add(command);
vimperator.modes.reset(true); //FIXME: use mode stack
//vimperator.focusContent();
completionlist.hide();
vimperator.statusline.updateProgress(""); // we may have a "match x of y" visible
return vimperator.triggerCallback("submit", mode, command);
@@ -398,7 +397,6 @@ function CommandLine() //{{{
var res = vimperator.triggerCallback("cancel", cur_extended_mode);
history.add(command);
vimperator.modes.set(old_mode, old_extended_mode);
//vimperator.focusContent();
completionlist.hide();
vimperator.statusline.updateProgress(""); // we may have a "match x of y" visible
this.clear();
@@ -433,6 +431,7 @@ function CommandLine() //{{{
if (history_index == lines.length)
{
setCommand(history_start);
vimperator.triggerCallback("change", cur_extended_mode, this.getCommand());
return;
}
@@ -453,6 +452,7 @@ function CommandLine() //{{{
if (lines[history_index].indexOf(history_start) == 0)
{
setCommand(lines[history_index]);
vimperator.triggerCallback("change", cur_extended_mode, this.getCommand());
return;
}
}