commit 09129df
delthas
·
2023-12-13 15:27:40 +0000 UTC
parent 5acac28
Add CTRL+F as a search shortcut This will be more intuitive for users.
2 files changed,
+7,
-0
M
app.go
+4,
-0
1@@ -566,6 +566,10 @@ func (app *App) handleKeyEvent(ev *tcell.EventKey) {
2 } else {
3 app.win.InputSet("/quit")
4 }
5+ case tcell.KeyCtrlF:
6+ if len(app.win.InputContent()) == 0 {
7+ app.win.InputSet("/search ")
8+ }
9 case tcell.KeyCtrlA:
10 app.win.InputHome()
11 case tcell.KeyCtrlE:
+3,
-0
1@@ -85,6 +85,9 @@ senpai eats these events for eg selecting channels.*
2 *CTRL-C*
3 Clear input line.
4
5+*CTRL-F*
6+ Prepare for search: add /search to input line.
7+
8 *CTRL-U*, *PgUp*
9 Go up in the timeline.
10