moar icon indicating copy to clipboard operation
moar copied to clipboard

Support suspending `moor` (`ctrl-z`)

Open yermulnik opened this issue 3 months ago • 4 comments

Does moor support suspension when shell supports job control? This is typically implemented when ctrl-z key combination is pressed, but moor doesn't respond to this shortcut 😕

yermulnik avatar Oct 02 '25 19:10 yermulnik

Just a bit of context as an example: when running some CLI command in single terminal window, I often run man <tool> to refresh memory or to search for a specific cmdline arg and value. And if I'm crafting some complex CLI command or experimenting with args and options, I suspend man (ctrl-z), run command to see if I can get desired behavior, then bring man back to foreground by using fg in Bash, continue exploring manual page, and repeat until I'm satisfied. Another similar example would be crafting a script or a program while keep editing it, where you open file, add changes, than suspend it to run it and verify whether it is doing what's expected, then bringing file back to foreground and continue editing, then suspend again and run, and repeat this multiple times. Thank you.

yermulnik avatar Oct 04 '25 17:10 yermulnik

@walles Is this at all possible with moor?

yermulnik avatar Oct 16 '25 11:10 yermulnik

Nope, code changes needed.

Not a priority for me. This is a valid request, but even so I can't say if or when this could be implemented.

walles avatar Oct 17 '25 19:10 walles

I see. Thanks for update.

yermulnik avatar Oct 17 '25 19:10 yermulnik