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

Is it possible to set `resurrect-dir` more dynamical

Open ErikLambrechts opened this issue 7 years ago • 4 comments

I am looking for a way to set resurrect-dir to the directory from which I start a new tmux session (extended with something like .tmux_resurrect). I was hoping for a 'project based' resurrect workflow.

ErikLambrechts avatar Apr 16 '18 15:04 ErikLambrechts

Hello @ErikLambrechts I am wondering if this is possible as well.

I would like to have different "ressurects" this way I would use tmux state based in the projects that I am working on.

marabesi avatar Jun 02 '18 16:06 marabesi

@ErikLambrechts @marabesi I have filed another ticket which gives a minimal change that would be needed in tmux-resurrect to be able to achieve this behavior. https://github.com/tmux-plugins/tmux-resurrect/issues/389. That seems to be the only hurdle in achieving the result we all intend.

poetaman avatar Jul 08 '21 01:07 poetaman

Update: I have created a PR that should resolve this: https://github.com/tmux-plugins/tmux-resurrect/pull/390

poetaman avatar Jul 08 '21 08:07 poetaman

As mentioned in #390, I can't see this feature making it into tmux-resurrect. I encourage you to fork the plugin (or just copy the code) and create another plugin that focuses on saving/restoring individual sessions.

bruno- avatar Jul 09 '21 07:07 bruno-