Conversation
|
@derailed seems like go doesn't support os signals on Windows without some hacky workarounds. |
|
@arajski Thank you for the research Artur! I think for non nix users likely Ctrtl-z does not make much sense. I don't use windows much these days but isn't Ctrl-z equivalent to |
9497cc0 to
33e727e
Compare
|
Done 👍 Tested on macOS Sonoma and Debian 12 |
|
@arajski Looks much better. Thank you! Looks like we need to resolve a conflict... |
|
@derailed sorry it took a while, conflict has been resolved. I noticed that you moved the |
|
@arajski Can you take another peek (conflicts). Thank you! |
|
@derailed all up to date 👍🏻 |
|
This PR is stale because it has been open for 30 days with no activity. |
Description
Implements unix-like suspend functionality mentioned in #2013
At the moment, k9s supports Ctrl-C, which exits the application, however it's not possible to suspend the process and send it to the background. This PR implements that functionality, which is common among other tools, like vim.
User can now send the process to the background by pressing Ctrl-Z.
Once suspended, it can be resumed by either using
fgor selecting a specific id from thejobslist (for example%1) in case there are multiple ones.This behaviour can be enabled by setting
allowSuspendtotrue.Changes
SIGTSTPsignal to the current k9s processallowSuspendconfig to opt in to this behaviourTODO:
Notes
This is my first contribution to this project, so happy to update things if there's anything missing/required. Thanks!