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 request: print pid and exit #1444

Open
lolbinarycat opened this issue Apr 12, 2024 · 1 comment
Open

Feature request: print pid and exit #1444

lolbinarycat opened this issue Apr 12, 2024 · 1 comment
Labels
support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead. wontfix This will not be worked on

Comments

@lolbinarycat
Copy link

lolbinarycat commented Apr 12, 2024

often i want to use htop to find a specific process, then give that PID to a different process.

because of the (usually convenient) mouse support, i can't simply copy and paste it (besides, this option isn't available to anyone using a vt).

my requested solution is a keyboard shortcut that exits htop and prints the pid of the selected process(es) to stdout, similar to the behavior of fzf.

@BenBE BenBE added wontfix This will not be worked on support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead. labels Apr 13, 2024
@BenBE
Copy link
Member

BenBE commented Apr 13, 2024

You can hold SHIFT with most terminal emulators while selecting text.

Also, you can use -M/--no-mouse to disable mouse support temporarily …

Furthermore there's pgrep available to lookup PIDs if there's usually just one process started that matches your criteria.

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. wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants