Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

wrap long command line in a separate window #636

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

wrap long command line in a separate window #636

wants to merge 2 commits into from

Conversation

ryenus
Copy link
Contributor

@ryenus ryenus commented Jun 14, 2017

For a process with a very long command, especially with many long
command line arguments, inspecting the command and its arguments could
become inconvenient from the process list.

Meanwhile htop supports the concept of "screen", or window, which is
extended to create a dedicated "CommandScreen", making it possible to
display the command of the selected process in a separate window,
with the command wrapped into multiple lines.

Another benefit of using a command screen is, the user can now navigate
through the wrapped lines of the command and perform actions like
searching and filtering.

Currently the shortcut key L, namely the capital L is used
to show the selected process command in a separate window, see the
screenshot below.

@ryenus ryenus changed the title wrap long command line with a separate window wrap long command line in a separate window Jun 14, 2017
@ryenus
Copy link
Contributor Author

ryenus commented Sep 11, 2017

A screenshot showing a Chrome command with 1.5K+ chars, for those interested in the result:

image

@jtojnar
Copy link

jtojnar commented Nov 14, 2017

This would be also useful for environment variables (#698)

For a process with a very long command, especially with many long
command line arguments, inspecting the command and its arguments could
become inconvenient.

Meanwhile htop supports the concept of "screen", or window, which is
extended to create a dedicated "CommandScreen", making it possible to
display the command of the selected process in a separate window
meanwhile being wrapped into multiple lines.

Another benefit of using a command screen is, the user can navigate
through the wrapped lines of the command and perform actions like
searching and filtering.
Previously the command is hard-wrapped by the window width,
this is now improved to wrap by the closest whitespace.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants