From 9af1a4d642b1149a98048f6a4e8f73716c8f352d Mon Sep 17 00:00:00 2001 From: sloum Date: Sun, 12 Apr 2020 22:53:08 -0700 Subject: [PATCH] Adds quick-link navigation by number keys --- client.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client.go b/client.go index 855f79d..5322c08 100644 --- a/client.go +++ b/client.go @@ -162,6 +162,12 @@ func (c *client) TakeControlInput() { input := cui.Getch() switch input { + case '1', '2', '3', '4', '5', '6', '7', '8', '9', '0': + if input == '0' { + c.goToLink("10") + } else { + c.goToLink(string(input)) + } case 'j', 'J': // scroll down one line c.ClearMessage()