aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fakevim
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-08-14 12:13:23 +0200
committerhjk <hjk@qt.io>2018-08-15 06:26:10 +0000
commit96be20d81653b1149848072b888415f000ecd07b (patch)
treefd3a2381475730ef9dfa417799259588975cf793 /src/plugins/fakevim
parent7bae47642c3af7316ffe816bbf7a092b7f536c1e (diff)
FakeVim: Alias C-w C-h/j/k/l to C-w h/j/k/l
In Vim land do as Vim does. Change-Id: I4172039804fbee2c596f02587028943ac9845164 Task-number: QTCREATORBUG-20923 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/fakevim')
-rw-r--r--src/plugins/fakevim/fakevimplugin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/fakevim/fakevimplugin.cpp b/src/plugins/fakevim/fakevimplugin.cpp
index fae80d470a5..443b36f4d9f 100644
--- a/src/plugins/fakevim/fakevimplugin.cpp
+++ b/src/plugins/fakevim/fakevimplugin.cpp
@@ -1677,13 +1677,13 @@ void FakeVimPluginPrivate::editorOpened(IEditor *editor)
triggerAction(Core::Constants::SPLIT_SIDE_BY_SIDE);
else if (key == "W" || key == "<C-W>")
triggerAction(Core::Constants::GOTO_NEXT_SPLIT);
- else if (key.contains("RIGHT") || key == "L" || key == "<S-L>")
+ else if (key.contains("RIGHT") || key == "L" || key == "<S-L>" || key == "<C-L>")
moveSomewhere(handler, &moveRightWeight, key == "<S-L>" ? -1 : count);
- else if (key.contains("LEFT") || key == "H" || key == "<S-H>")
+ else if (key.contains("LEFT") || key == "H" || key == "<S-H>" || key == "<C-H>")
moveSomewhere(handler, &moveLeftWeight, key == "<S-H>" ? -1 : count);
- else if (key.contains("UP") || key == "K" || key == "<S-K>")
+ else if (key.contains("UP") || key == "K" || key == "<S-K>" || key == "<C-K>")
moveSomewhere(handler, &moveUpWeight, key == "<S-K>" ? -1 : count);
- else if (key.contains("DOWN") || key == "J" || key == "<S-J>")
+ else if (key.contains("DOWN") || key == "J" || key == "<S-J>" || key == "<C-J>")
moveSomewhere(handler, &moveDownWeight, key == "<S-J>" ? -1 : count);
else
qDebug() << "UNKNOWN WINDOW COMMAND: <C-W>" << map;