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

Wrong path when I open a new window/pane

Open ferologics opened this issue 5 years ago • 1 comments

I use tmux-continuum but I think that this might be resurrect related. Any new window/pane opens with an old path that I don't even use anymore. Is this somehow related to a manually saved session? I think I did that by accident some time ago when working on the project and now all new windows open at that path.

ferologics avatar Oct 21 '20 09:10 ferologics

From looking at the source of restore.sh, it seems that, when tmux new-session is called (line 208), it is provided the arguments "-c $pane_working_dir", where the pane being used is the very first entry in the resurrect file. Not sure I'd consider that the best behaviour, though I'm sure that there are workflows that use this behaviour.

(Surprisingly, I can't seem to find this default path anywhere in the output of tmux show-options / show-environment. This made it a bit annoying to track down.)

atomicstack avatar Jul 19 '21 01:07 atomicstack