fakevim: map ctrl-] (follow tag in vim) to "Follow symbol under cursor" and ctrl-t (move up in tag stack) to "Go Back"

Merge-request: 131
Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
Martin Aumüller
2010-03-18 13:15:59 +01:00
committed by hjk
parent fc6851824c
commit 2ee91c8aab
2 changed files with 8 additions and 0 deletions

View File

@@ -1772,6 +1772,8 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_movetype = MoveExclusive;
m_subsubmode = FtSubSubMode;
m_subsubdata = key;
} else if (key == control('t')) {
handleCommand("pop");
} else if (!m_gflag && key == 'u') {
undo();
} else if (key == control('u')) {
@@ -1928,6 +1930,8 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
removeSelectedText();
} else if (key == Key_BracketLeft || key == Key_BracketRight) {
} else if (key == control(Key_BracketRight)) {
handleCommand("tag");
} else if (key == Key_Escape) {
if (isVisualMode()) {
leaveVisualMode();