Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On-the-fly sorting via keyboard shortcut? #31

Closed
alicektx opened this issue Dec 10, 2019 · 2 comments
Closed

On-the-fly sorting via keyboard shortcut? #31

alicektx opened this issue Dec 10, 2019 · 2 comments
Assignees

Comments

@alicektx
Copy link

Hi, would it be possible to be able change sorting 'on-the-fly' via a keyboard shortcut or a similar method?
Ie. say for example Alt+S once, sort by User,
Alt+S again, sort / 'cycle' to the next available column...
Ctrl could maybe further be used for ascending / descending order on whatever 'selected' column.

Just a generic suggestion, hopefully i'm making sense above :-)
Basically a way to switch view fast to the top possible 'offenders',
without having to q, procs --sortd rss, q, procs --sorta tcpport etc...

All the best

@dalance dalance self-assigned this Jan 23, 2020
dalance added a commit that referenced this issue Jan 23, 2020
@dalance
Copy link
Owner

dalance commented Jan 23, 2020

Now I added the feature and released v0.9.0.
If procs is launched as watch mode by --watch option, you can change sort order by n/p/a/d key.
n is next column, p is previous column, a is ascending and d is descending.

@alicektx
Copy link
Author

Absolutely rocks! Wonderful!! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants