aboutsummaryrefslogtreecommitdiff
path: root/include/completion/CommandsModel.hpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-03-15 19:17:03 +0530
committerAkshay Nair <phenax5@gmail.com>2025-03-15 20:08:30 +0530
commit387cf24e389854ecc97f6236fdd6acbc2486dd52 (patch)
treea51b51de0064fb10685d2da85d11748c4a32ce73 /include/completion/CommandsModel.hpp
parent05ae8976a8e1ab5411058de244c4e2fcc87ec369 (diff)
downloadnull-browser-387cf24e389854ecc97f6236fdd6acbc2486dd52.tar.gz
null-browser-387cf24e389854ecc97f6236fdd6acbc2486dd52.zip
Replaced QCompleter with custom implementation
Diffstat (limited to '')
-rw-r--r--include/completion/CommandsModel.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/completion/CommandsModel.hpp b/include/completion/CommandsModel.hpp
index 28836fe..4f64654 100644
--- a/include/completion/CommandsModel.hpp
+++ b/include/completion/CommandsModel.hpp
@@ -9,11 +9,13 @@ struct Command {
QString description;
};
+// TODO: Combine commands model completion and commands evaluation
const QList<Command> commands = {
- {.name = "open", .description = "Open a url in the current tab"},
+ {.name = "open", .description = "Update current URL"},
+ {.name = "tabs", .description = "Select a tab"},
{.name = "tabopen", .description = "Open a url in a new tab"},
{.name = "tabnext", .description = "Go to next tab"},
- {.name = "tabbprev", .description = "Go to previous tab"},
+ {.name = "tabprev", .description = "Go to previous tab"},
};
class CommandsModel : public QAbstractListModel {