diff options
| author | Andrew Chow <[email protected]> | 2017-01-09 20:53:00 -0500 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2017-01-09 21:23:16 -0500 |
| commit | 6d8fe35b94c660654020c876d6c1862b2d4f0397 (patch) | |
| tree | 59bace239d63304e5fdaa292e11d8829294d0f8f /src | |
| parent | Merge #9353: Add data() method to CDataStream (and use it) (diff) | |
| download | discoin-6d8fe35b94c660654020c876d6c1862b2d4f0397.tar.xz discoin-6d8fe35b94c660654020c876d6c1862b2d4f0397.zip | |
'help' rpc commands autocomplete
Adds autocompletion of the commands for when getting the help of a command by using `help <command>`
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/rpcconsole.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index d84d6185d..dd1fb7d47 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. |