Adds quick-link navigation by number keys
This commit is contained in:
parent
23bc3d75a5
commit
9af1a4d642
|
@ -162,6 +162,12 @@ func (c *client) TakeControlInput() {
|
||||||
input := cui.Getch()
|
input := cui.Getch()
|
||||||
|
|
||||||
switch input {
|
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':
|
case 'j', 'J':
|
||||||
// scroll down one line
|
// scroll down one line
|
||||||
c.ClearMessage()
|
c.ClearMessage()
|
||||||
|
|
Loading…
Reference in New Issue