htop icon indicating copy to clipboard operation
htop copied to clipboard

Feature: Quick toggle for showing userland process' threads

Open mcourteaux opened this issue 1 year ago • 5 comments

Right now F2, Down, Right, Down, Down, Down, Down, Space, F10 is a bit too long of a sequence for such an important feature, in my opinion. I find myself toggling this often.

On the other hand, I don't think I've ever used the Nice- (F7) and Nice+ (F8) shortcuts. Also the Kill (F9) is redundant as K does the same.

This would be nice to make this configurable.

mcourteaux avatar May 16 '24 11:05 mcourteaux

That's already implemented using Shift+H for userland threads and Shift+K for kernel threads. This is also documented if you press F1, ? or H (without Shift).

BenBE avatar May 16 '24 11:05 BenBE

Ah, amazing! A discoverability feature then could be to also document the existing shortcuts in the Options menu.

mcourteaux avatar May 16 '24 11:05 mcourteaux

Both F9 and K intentionally exist, as on some systems the function keys are inaccessible for various reasons. Having both shortcuts available allows to still use these features even if the keymap is inadvertently broken.

Best example is F10, which gnome-terminal grabs for itself to show a graphical menu. Thus having the alternative Q available, to exit htop properly, is essential.

The list of aliases is documented on the help screen. We usually try to have each feature reachable without relying on special keys too much.

BenBE avatar May 16 '24 11:05 BenBE

Any opinion on adding them here (that will probably help a lot of people figure out that that is possible)?

image

Could be \033[2m for dimmer rendering.

mcourteaux avatar May 16 '24 12:05 mcourteaux

@mcourteaux

Any option on adding them here (that will probably help a lot of people figure out that that is possible)?

I don't think documenting the hotkey there would help usability as the hotkeys would definitely not work with the Setup screen itself.

The help screen is a better place to do it, and the man page as well.

Explorer09 avatar May 18 '24 13:05 Explorer09