commit 75155fa
Leon Henrik Plickat
·
2021-12-06 11:49:52 +0000 UTC
parent 42e5a40
Allow selecting buffers with Alt+{1..9}
2 files changed,
+5,
-0
M
app.go
+2,
-0
1@@ -538,6 +538,8 @@ func (app *App) handleKeyEvent(ev *tcell.EventKey) {
2 app.win.ScrollDownHighlight()
3 case 'p':
4 app.win.ScrollUpHighlight()
5+ case '1', '2', '3', '4', '5', '6', '7', '8', '9':
6+ app.win.GoToBufferNo(int(ev.Rune()-'0') - 1)
7 }
8 } else {
9 app.win.InputRune(ev.Rune())
+3,
-0
1@@ -93,6 +93,9 @@ of messages are in the timeline:
2 Go to the next highlight, or to the (most recent) end of the timeline if
3 there is none.
4
5+*ALT-{1..9}*
6+ Go to buffer by index.
7+
8 *UP*, *DOWN*, *LEFT*, *RIGHT*, *HOME*, *END*, *BACKSPACE*, *DELETE*
9 Edit the text in the input field.
10