Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
This is a great idea. Feel free to open an issue/start a discussion thread for deciding on adding vim-like keybindings. For the rest of the points, +1 to what @Gituser143 said. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We now have a basic working implementation of a signal list (#112) to dispatch signals to processes. Now I'd like to discuss some of the finer points of how it works, and some useful keybindings to use it. In terms of behavior, this is how it currently works -
K
/<F9>
) opens the signal list (and, in essence, enters a kill submode)j/k/<Up>/<Down>
allow navigation through the signal list<Enter>
sends the highlighted signal to the selected processK/<F9>
sendsSIGTERM
to the process (this is a slight change in behavior from before, see this, this and this - bonus comic!) to evaluate the differenceWhat is sorely lacking is keybindings to navigate through the signal list. I find the keybindings used by
htop
(based on numbers) easy to use, and it should be fairly straightforward to implement. Additionally, we could discuss bringing in some of the other vim-like bindings used in other parts of the application if necessary.Some of the behavioral aspects to discuss are -
htop
? Most used first? Alphabetical?syscall
library provides 35 signals as named constants. However, I observed only 31 signals supported bykill
(usingkill -l
). This might be platform specific, or a limitation ofkill
. By contrast,htop
provides 63 signals<Enter>
/repeat key) to confirm? (this would now be in addition to two keys already)htop
does not allow exiting when in the kill submode, while the current implementation does. Personally, I feel it is fine (and even a bonus) since it does not cause any unexpected behaviorOne last point of discussion is the UI. We currently only display the name of the signal. Additionally, we could show the integer representation of the signal, the numeric keybinding to select that signal (if we implement numeric navigation) and a short description of what the signal does.
Beta Was this translation helpful? Give feedback.
All reactions