★ wanayoo — archive 1999 https://github.com/tmux-python/tmuxp/issues/566Nouvelle recherche | Portail wanayoo
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

Support freezing & loading windows #566

Open
dufferzafar opened this issue Apr 9, 2020 · 0 comments
Open

Support freezing & loading windows #566

dufferzafar opened this issue Apr 9, 2020 · 0 comments

Comments

@dufferzafar
Copy link

@dufferzafar dufferzafar commented Apr 9, 2020

Currently, tmuxp operates at session level. So it takes in a session name, dumps it to a file and can then be used to load from that. I propose that we should also support saving and loading of individual windows.

I needed this today and for now, I froze the current session, edited the file manually to remove info of all other windows, then loaded the session, and moved the window to my current session.

The API would be something like:

tmuxp freeze -w [window_name] file_name

tmuxp load -w file_name

I looked at the code and this doesn't seem hard to do. If I ever need this again, I'll be up to making the relevant changes.

https://github.com/tmux-python/tmuxp/blob/master/tmuxp/workspacebuilder.py#L353

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.