Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restoring non-existing directories #485

Open
bart-jaskulski opened this issue Sep 1, 2023 · 0 comments
Open

Restoring non-existing directories #485

bart-jaskulski opened this issue Sep 1, 2023 · 0 comments

Comments

@bart-jaskulski
Copy link

It would be nice if tmux-resurrect could restore session/window/pane path even if it not exists.

I heavily use /tmp directory in my daily work, serving as a scratchpad. I usually create such session with tmux new -c $(mktemp -d), landing in something like /tmp/tmp.cZXPfjfgzL, which is wiped out on device shutdown. While it isn't crucial to get back to the same directory after restoring sessions, currently the plugin leaves me at home dir.

I think there's a room for introducing optional feature of restoring directories (with a dedicated setting in tmux config). It would simply check if the directory exists and call mkdir -p $dir, possibly within restore_pane function, before actually creating any session/window/pane.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant