~taiite/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

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

Details
Message ID
<20211202004616.6050-1-leonhenrik.plickat@stud.uni-goettingen.de>
DKIM signature
missing
Download raw message
Patch: +3 -0
---
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
Details
Message ID
<f23e65d7-7e31-62ba-dc83-562ae3384363@hirtz.pm>
In-Reply-To
<20211202004616.6050-1-leonhenrik.plickat@stud.uni-goettingen.de> (view parent)
DKIM signature
missing
Download raw message
Thanks for the patch :)

Can you update doc/senpai.1.scd with the new keybindings?
Reply to thread Export thread (mbox)