Merge pull request #365 from IgorRamalho/fix-alias-sort-actions

fix Aliases sorting actions
mine
Fernand Galiana 2019-10-17 05:28:59 -06:00 committed by GitHub
commit 3a258b16e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -49,14 +49,16 @@ func (v *aliasView) Init(context.Context, string) {
func (v *aliasView) registerActions() {
v.RmAction(ui.KeyShiftA)
v.RmAction(ui.KeyShiftN)
v.RmAction(tcell.KeyCtrlS)
v.SetActions(ui.KeyActions{
tcell.KeyEnter: ui.NewKeyAction("Goto", v.gotoCmd, true),
tcell.KeyEscape: ui.NewKeyAction("Reset", v.resetCmd, false),
ui.KeySlash: ui.NewKeyAction("Filter", v.activateCmd, false),
ui.KeyShiftR: ui.NewKeyAction("Sort Resources", v.SortColCmd(1), false),
ui.KeyShiftO: ui.NewKeyAction("Sort Groups", v.SortColCmd(2), false),
ui.KeyShiftR: ui.NewKeyAction("Sort Resource", v.SortColCmd(0), false),
ui.KeyShiftC: ui.NewKeyAction("Sort Command", v.SortColCmd(1), false),
ui.KeyShiftA: ui.NewKeyAction("Sort ApiGroup", v.SortColCmd(2), false),
})
}