tmux-resurrect icon indicating copy to clipboard operation
tmux-resurrect copied to clipboard

allow children of tmux to be saved

Open spencerbutler opened this issue 4 years ago • 3 comments

I noticed that your awesome plugin was not saving all my ssh sessions. Although my use case was different than those in #264, I added a comment there with my issue. The following PR builds on what I originally posted there.

cheers

spencerbutler avatar Nov 01 '19 00:11 spencerbutler

Based on what I understood from #264 are you saying you're running ssh directly from tmux? Something like $ tmux new-window 'ssh yourdomain.com'?

If the above is true, then I'm not sure we want to support that. It's an edge case that adds complexity. The binding from #264 can easily be changed to: open new pane/window with a terminal + start ssh. With this change everything should work just fine.

bruno- avatar Nov 01 '19 15:11 bruno-

I don't see this as an edge case. Not everyone spawns (or wants to spawn) a new shell for every new window. I also don't understand the complexity this introduces. You only support a handful of programs to restore, and this is added at the end of that discovery process before giving up.

Is there a less complex way I could include such child processes? Are there others that would appreciate restoring the children of tmux?

spencerbutler avatar Nov 02 '19 13:11 spencerbutler

@bruno-, I don't see this as an edge case too. It is very comfortable to open some apps like this

MattBystrin avatar Apr 17 '22 07:04 MattBystrin