aboutsummaryrefslogtreecommitdiff
path: root/config.hpp
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-01-28 17:21:13 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-01-28 17:21:13 +0100
commit8227a8d984a7d2e18acf70ff20d4dd30880ecc77 (patch)
tree24c17a20e7503245a16e2200b0bf52ff581a6682 /config.hpp
parent6cc6821950730146c4723e0bf5c9e3ac796e2b45 (diff)
add search
Diffstat (limited to 'config.hpp')
-rw-r--r--config.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.hpp b/config.hpp
index 25d6250..e5e0551 100644
--- a/config.hpp
+++ b/config.hpp
@@ -14,4 +14,7 @@ void register_shortcuts(QWidget *view) {
new QShortcut(QKeySequence(MODIFIER + Qt::SHIFT + Qt::Key_H), view, [=]() { history_move(true); });
new QShortcut(QKeySequence(MODIFIER + Qt::SHIFT + Qt::Key_L), view, [=]() { history_move(false); });
new QShortcut(QKeySequence(MODIFIER + Qt::Key_R), view, [=]() { reload(); });
+ new QShortcut(QKeySequence(MODIFIER + Qt::Key_Slash), view, [=]() { find(); });
+ new QShortcut(QKeySequence(MODIFIER + Qt::Key_N), view, [=]() { find_next(); });
+ new QShortcut(QKeySequence(MODIFIER + Qt::SHIFT + Qt::Key_N), view, [=]() { find_previous(); });
}