feat: sort by role in node list view (#2558)

mine
yinheli 2024-02-29 22:53:53 +08:00 committed by GitHub
parent fddd18f44e
commit 00e4600788
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ func (n *Node) bindKeys(aa ui.KeyActions) {
aa.Add(ui.KeyActions{
ui.KeyY: ui.NewKeyAction(yamlAction, n.yamlCmd, true),
ui.KeyShiftR: ui.NewKeyAction("Sort ROLE", n.GetTable().SortColCmd("ROLE", true), false),
ui.KeyShiftC: ui.NewKeyAction("Sort CPU", n.GetTable().SortColCmd(cpuCol, false), false),
ui.KeyShiftM: ui.NewKeyAction("Sort MEM", n.GetTable().SortColCmd(memCol, false), false),
ui.KeyShiftO: ui.NewKeyAction("Sort Pods", n.GetTable().SortColCmd("PODS", false), false),