Skip to content

TOP like sort shortcuts. #1000

@kehao95

Description

@kehao95




Is your feature request related to a problem? Please describe.
I'm always frustrated when I want to sort some column other than the most common ones like name or age. I have to check the help with ? to see what sort is available. And most time they are not available. for example the claim field in persistentvolume

Describe the solution you'd like
k9s may adopt the solution in top where

Sorting the top output
By default, top sorts its entries by the CPU usage. You can change that by pressing M to sort by memory usage. To reverse sort your output, press R. To return to sorting by CPU, press P. To sort by other fields press < to move the sort column to the left and > to move the sort column to the right. To get help, press h. To exit top, press q.

So that would be: we can keep the current shortcut
but also provide any column sort by.

  • press < to move the sort column to the left
  • press > to move the sort column to the right.
  • press R to reverse sort

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions