~taiite/public-inbox

Allow selecting buffers with Alt+{1..9} v1 SUPERSEDED

Leon Henrik Plickat: 1
 Allow selecting buffers with Alt+{1..9}

 1 files changed, 3 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~taiite/public-inbox/patches/27043/mbox | git am -3
Learn more about email & git

[PATCH] Allow selecting buffers with Alt+{1..9} Export this patch

---
I am missing from other IRC clients, so I hope this feature is
acceptable for senpai.

Never wrote go before, so it's possible I am missing something obvious
here.
 app.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app.go b/app.go
index 2b0ba82..956c89e 100644
--- a/app.go
+++ b/app.go
@@ -513,6 +513,7 @@ func (app *App) handleKeyEvent(ev *tcell.EventKey) {
		}
	case tcell.KeyBacktab:
		ok := app.win.InputAutoComplete(-1)

		if ok {
			app.typing()
		}
@@ -535,6 +536,8 @@ func (app *App) handleKeyEvent(ev *tcell.EventKey) {
				app.win.ScrollDownHighlight()
			case 'p':
				app.win.ScrollUpHighlight()
			case '1', '2', '3', '4', '5', '6', '7', '8', '9':
				app.win.GoToBufferNo(int(ev.Rune()-'0') - 1)
			}
		} else {
			app.win.InputRune(ev.Rune())
-- 
2.34.0
Thanks for the patch :)

Can you update doc/senpai.1.scd with the new keybindings?