From 8227a8d984a7d2e18acf70ff20d4dd30880ecc77 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sat, 28 Jan 2023 17:21:13 +0100 Subject: add search --- config.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.hpp') 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(); }); } -- cgit v1.2.3-70-g09d2