From 6d8fe35b94c660654020c876d6c1862b2d4f0397 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Mon, 9 Jan 2017 20:53:00 -0500 Subject: 'help' rpc commands autocomplete Adds autocompletion of the commands for when getting the help of a command by using `help ` --- src/qt/rpcconsole.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/qt') diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index d84d6185d5..dd1fb7d475 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -626,9 +626,12 @@ void RPCConsole::setClientModel(ClientModel *model) for (size_t i = 0; i < commandList.size(); ++i) { wordList << commandList[i].c_str(); + wordList << ("help " + commandList[i]).c_str(); } + wordList.sort(); autoCompleter = new QCompleter(wordList, this); + autoCompleter->setModelSorting(QCompleter::CaseSensitivelySortedModel); ui->lineEdit->setCompleter(autoCompleter); autoCompleter->popup()->installEventFilter(this); // Start thread to execute RPC commands. -- cgit v1.2.3