Commit 3d36ece2 authored by hjk's avatar hjk
Browse files

fakevim: fake tab completion

parent 1507b5b4
......@@ -2824,6 +2824,13 @@ EventResult FakeVimHandler::Private::handleExMode(const Input &input)
m_commandBuffer.chop(1);
}
updateMiniBuffer();
} else if (input.isKey(Key_Tab)) {
QStringList completions;
foreach (const QString &entry, g.commandHistory.items()) {
if (entry.startsWith(m_commandBuffer))
completions.append(entry);
}
qDebug() << completions;
} else if (input.isKey(Key_Left)) {
// FIXME:
if (!m_commandBuffer.isEmpty())
......
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