forked from qt-creator/qt-creator
FakeVim: Fix gt/gT/:tabnext/:tabprevious
The mapping was there, but not connected to the core actions. Change-Id: I9faa1c47afe409caaa0462740a6865d99d959b44 Reviewed-by: Lukas Holecek <hluk@email.cz> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1802,6 +1802,11 @@ void FakeVimPluginPrivate::editorOpened(IEditor *editor)
|
||||
connect(ICore::instance(), &ICore::saveSettingsRequested,
|
||||
this, &FakeVimPluginPrivate::writeSettings);
|
||||
|
||||
connect(handler, &FakeVimHandler::tabNextRequested,
|
||||
this, [this] { triggerAction(Core::Constants::GOTONEXTINHISTORY); });
|
||||
connect(handler, &FakeVimHandler::tabPreviousRequested,
|
||||
this, [this] { triggerAction(Core::Constants::GOTOPREVINHISTORY); });
|
||||
|
||||
handler->setCurrentFileName(editor->document()->filePath().toString());
|
||||
handler->installEventFilter();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user