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

Feature: Quick toggle for showing userland process' threads #1480

Open
mcourteaux opened this issue May 16, 2024 · 5 comments
Open

Feature: Quick toggle for showing userland process' threads #1480

mcourteaux opened this issue May 16, 2024 · 5 comments
Labels
support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead.

Comments

@mcourteaux
Copy link

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.

@BenBE BenBE changed the title 🌟 feature request: Quick toggle shortcut for showing userland process threads. Feature: Quick toggle for showing userland process' threads May 16, 2024
@BenBE BenBE added the support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead. label May 16, 2024
@BenBE
Copy link
Member

BenBE commented May 16, 2024

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).

@mcourteaux
Copy link
Author

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

@BenBE
Copy link
Member

BenBE commented May 16, 2024

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.

@mcourteaux
Copy link
Author

mcourteaux commented May 16, 2024

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.

@Explorer09
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead.
Projects
None yet
Development

No branches or pull requests

3 participants