tmux-tilish
tmux-tilish copied to clipboard
preserve pane arrangement on refresh
Hello!
I have been using this plugin for nearly a year now and it has been a tremendous productivity gain for me.
However, it always bugged me that when I accidentally apply a preset layout, I would basically lose the ability to configure the pane arrangement of that window and need to move all my panes to another window.
I thought this was intentional, but maybe not?
Thanks and great project!
Hi! Thanks for the feedback, happy to hear that you're enjoying the plugin! Apologies for the delayed response; I've been overly busy recently, as I've been switching jobs and moving between cities :).
So if I understand correctly, the issue that this PR resolves is:
- You organize the panes in a a window "manually" (not with a layout);
- You accidentally click alt+v or alt+s or something and enable a layout;
- Afterwards, you can't really "get rid" of the layout without creating a new window.
Is this correct? And with your PR, do these previous things still work correctly:
- The current layout (if selected) is preserved if you create or delete panes;
- If you have set a default layout (e.g. main-vertical), then in new windows the panes automatically follow that layout.
If so, I will give the PR a spin and try to merge it – if not, we can discuss a bit how to make the modification work for everyone (e.g. an if-test checking if you have a default layout set, before running select-layout
in that code).