Commit d110043c authored by hjk's avatar hjk
Browse files

fakevim: make :e open the Locator by default

parent ccc959f4
...@@ -525,8 +525,8 @@ private: ...@@ -525,8 +525,8 @@ private:
FakeVimExCommandsPage *m_fakeVimExCommandsPage; FakeVimExCommandsPage *m_fakeVimExCommandsPage;
QHash<Core::IEditor *, FakeVimHandler *> m_editorToHandler; QHash<Core::IEditor *, FakeVimHandler *> m_editorToHandler;
void triggerAction(const QString& code); void triggerAction(const QString &code);
void setActionChecked(const QString& code, bool check); void setActionChecked(const QString &code, bool check);
void readSettings(QSettings *settings); void readSettings(QSettings *settings);
void writeSettings(QSettings *settings); void writeSettings(QSettings *settings);
...@@ -557,6 +557,8 @@ FakeVimPluginPrivate::FakeVimPluginPrivate(FakeVimPlugin *plugin) ...@@ -557,6 +557,8 @@ FakeVimPluginPrivate::FakeVimPluginPrivate(FakeVimPlugin *plugin)
QRegExp("^tag?$"); QRegExp("^tag?$");
s_defaultExCommandMap[Core::Constants::GO_BACK] = s_defaultExCommandMap[Core::Constants::GO_BACK] =
QRegExp("^pop?$"); QRegExp("^pop?$");
s_defaultExCommandMap[QLatin1String("QtCreator.Locate")] =
QRegExp("^e$");
} }
FakeVimPluginPrivate::~FakeVimPluginPrivate() FakeVimPluginPrivate::~FakeVimPluginPrivate()
...@@ -704,7 +706,7 @@ void FakeVimPluginPrivate::showSettingsDialog() ...@@ -704,7 +706,7 @@ void FakeVimPluginPrivate::showSettingsDialog()
QLatin1String(Constants::SETTINGS_ID)); QLatin1String(Constants::SETTINGS_ID));
} }
void FakeVimPluginPrivate::triggerAction(const QString& code) void FakeVimPluginPrivate::triggerAction(const QString &code)
{ {
Core::ActionManager *am = Core::ICore::instance()->actionManager(); Core::ActionManager *am = Core::ICore::instance()->actionManager();
QTC_ASSERT(am, return); QTC_ASSERT(am, return);
...@@ -715,7 +717,7 @@ void FakeVimPluginPrivate::triggerAction(const QString& code) ...@@ -715,7 +717,7 @@ void FakeVimPluginPrivate::triggerAction(const QString& code)
action->trigger(); action->trigger();
} }
void FakeVimPluginPrivate::setActionChecked(const QString& code, bool check) void FakeVimPluginPrivate::setActionChecked(const QString &code, bool check)
{ {
Core::ActionManager *am = Core::ICore::instance()->actionManager(); Core::ActionManager *am = Core::ICore::instance()->actionManager();
QTC_ASSERT(am, return); QTC_ASSERT(am, return);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment