add C-n C-p next previous
parent
a04e79fc54
commit
9db7c4b44d
|
@ -46,9 +46,9 @@ func (browse *Browse) Event(state *ui.State, event vaxis.Event) (processed bool)
|
||||||
switch key.String() {
|
switch key.String() {
|
||||||
case "Ctrl+c", "Ctrl+d":
|
case "Ctrl+c", "Ctrl+d":
|
||||||
close(ui.Quit)
|
close(ui.Quit)
|
||||||
case "Down", "j":
|
case "Down", "j", "Ctrl+n":
|
||||||
browse.list.Down()
|
browse.list.Down()
|
||||||
case "Up", "k":
|
case "Up", "k", "Ctrl+p":
|
||||||
browse.list.Up()
|
browse.list.Up()
|
||||||
case "End", "Shift+g":
|
case "End", "Shift+g":
|
||||||
browse.list.End()
|
browse.list.End()
|
||||||
|
|
|
@ -64,9 +64,9 @@ func (config *Config) Event(state *ui.State, event vaxis.Event) (processed bool)
|
||||||
switch key.String() {
|
switch key.String() {
|
||||||
case "Ctrl+c", "Ctrl+d":
|
case "Ctrl+c", "Ctrl+d":
|
||||||
close(ui.Quit)
|
close(ui.Quit)
|
||||||
case "Down", "j":
|
case "Down", "j", "Ctrl+n":
|
||||||
config.list.Down()
|
config.list.Down()
|
||||||
case "Up", "k":
|
case "Up", "k", "Ctrl+p":
|
||||||
config.list.Up()
|
config.list.Up()
|
||||||
case "End", "Shift+g":
|
case "End", "Shift+g":
|
||||||
config.list.End()
|
config.list.End()
|
||||||
|
|
|
@ -36,9 +36,9 @@ func (management *Management) Event(state *ui.State, event vaxis.Event) (process
|
||||||
switch key.String() {
|
switch key.String() {
|
||||||
case "Ctrl+c", "Ctrl+d":
|
case "Ctrl+c", "Ctrl+d":
|
||||||
close(ui.Quit)
|
close(ui.Quit)
|
||||||
case "Down", "j":
|
case "Down", "j", "Ctrl+n":
|
||||||
management.list.Down()
|
management.list.Down()
|
||||||
case "Up", "k":
|
case "Up", "k", "Ctrl+p":
|
||||||
management.list.Up()
|
management.list.Up()
|
||||||
case "End", "Shift+g":
|
case "End", "Shift+g":
|
||||||
management.list.End()
|
management.list.End()
|
||||||
|
|
|
@ -48,9 +48,9 @@ func (menu *MainMenu) Event(state *ui.State, event vaxis.Event) (processed bool)
|
||||||
switch key.String() {
|
switch key.String() {
|
||||||
case "Ctrl+c", "Ctrl+d", "q":
|
case "Ctrl+c", "Ctrl+d", "q":
|
||||||
close(ui.Quit)
|
close(ui.Quit)
|
||||||
case "Down", "j":
|
case "Down", "j", "Ctrl+n":
|
||||||
menu.list.Down()
|
menu.list.Down()
|
||||||
case "Up", "k":
|
case "Up", "k", "Ctrl+p":
|
||||||
menu.list.Up()
|
menu.list.Up()
|
||||||
case "End", "Shift+g":
|
case "End", "Shift+g":
|
||||||
menu.list.End()
|
menu.list.End()
|
||||||
|
|
|
@ -58,9 +58,9 @@ func (neighbors *Neighbors) Event(state *ui.State, event vaxis.Event) (processed
|
||||||
switch key.String() {
|
switch key.String() {
|
||||||
case "Ctrl+c", "Ctrl+d":
|
case "Ctrl+c", "Ctrl+d":
|
||||||
close(ui.Quit)
|
close(ui.Quit)
|
||||||
case "Down", "j":
|
case "Down", "j", "Ctrl+n":
|
||||||
neighbors.list.Down()
|
neighbors.list.Down()
|
||||||
case "Up", "k":
|
case "Up", "k", "Ctrl+p":
|
||||||
neighbors.list.Up()
|
neighbors.list.Up()
|
||||||
case "End", "Shift+g":
|
case "End", "Shift+g":
|
||||||
neighbors.list.End()
|
neighbors.list.End()
|
||||||
|
|
|
@ -42,9 +42,9 @@ func (subscriptions *Subscriptions) Event(state *ui.State, event vaxis.Event) (p
|
||||||
switch key.String() {
|
switch key.String() {
|
||||||
case "Ctrl+c", "Ctrl+d":
|
case "Ctrl+c", "Ctrl+d":
|
||||||
close(ui.Quit)
|
close(ui.Quit)
|
||||||
case "Down", "j":
|
case "Down", "j", "Ctrl+n":
|
||||||
subscriptions.list.Down()
|
subscriptions.list.Down()
|
||||||
case "Up", "k":
|
case "Up", "k", "Ctrl+p":
|
||||||
subscriptions.list.Up()
|
subscriptions.list.Up()
|
||||||
case "End", "Shift+g":
|
case "End", "Shift+g":
|
||||||
subscriptions.list.End()
|
subscriptions.list.End()
|
||||||
|
|
|
@ -44,9 +44,9 @@ func (user *UserPage) Event(state *ui.State, event vaxis.Event) (processed bool)
|
||||||
switch key.String() {
|
switch key.String() {
|
||||||
case "Ctrl+c", "Ctrl+d":
|
case "Ctrl+c", "Ctrl+d":
|
||||||
close(ui.Quit)
|
close(ui.Quit)
|
||||||
case "Down", "j":
|
case "Down", "j", "Ctrl+n":
|
||||||
user.list.Down()
|
user.list.Down()
|
||||||
case "Up", "k":
|
case "Up", "k", "Ctrl+p":
|
||||||
user.list.Up()
|
user.list.Up()
|
||||||
case "End", "Shift+g":
|
case "End", "Shift+g":
|
||||||
user.list.End()
|
user.list.End()
|
||||||
|
|
Loading…
Reference in New Issue