Adds quick-link navigation by number keys

This commit is contained in:
sloum 2020-04-12 22:53:08 -07:00
parent 23bc3d75a5
commit 9af1a4d642
1 changed files with 6 additions and 0 deletions

View File

@ -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()