-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
Messed up layout after opening tabs in close succession #621
Comments
On my machine it seems waiting 250 milliseconds before opening a new Tab |
fixes zellij-org#603, fixes zellij-org#349 * The layout has now a unique `tabs` section, that can be used, like the `parts` section, everything that is not inside the tabs section is assumed to be present on every single tab that is opened. This is a BREAKING CHANGE for people that use custom `layouts` already, since the `tabs` section is not optional - for clarity and intentionality reasons. The functionality to specify multiple tabs is already there, but is still gated behind a panic, until zellij-org#621 is fixed. So for now one tab can be specified to load on startup. * The `NewTab` action can optionally be bound to open a layout that is assumed to be in the new `tabs` section This is a BREAKING CHANGE for people that have the `NewTab` action already bound in the config file: ``` - action: [NewTab, ] key: [F: 5,] ``` must now be specified as: ``` - action: [NewTab: ,] key: [F: 5,] ``` Optionally a layout that should be opened on the new tab can be specified: ``` - action: [NewTab: { direction: Vertical, parts: [ {direction: Horizontal, split_size: {Percent: 50}}, {direction: Horizontal, run: {command: {cmd: "htop"}}},], key: [F: 6,] ``` or: ``` - action: [NewTab: {direction: Vertical, run: {command: {cmd: "htop"} }},] key: [F: 7,] ``` or ``` - action: [NewTab: { direction: Vertical, parts: [ {direction: Vertical, split_size: {Percent: 25},run: {plugin: "strider" }}, {direction: Horizontal}],}, MoveFocus: Left,] key: [F: 8,] ```
This only seems to happen on layouts that load plugins, cc @TheLostLambda, maybe you have more input here. |
Just my quick 2 cents: my gut tells me this is an atomicity issue that we can solve with |
Fixes zellij-org#621 * `ScreenInstruction::SetSelectable` etc. were not updating correctly, if a NewTab was spawned, before the plugin was finished setting the attributes. Now the `tab_index` is used to send the instructions to their respective tabs and plugins.
After opening many tabs in succession the layout seems somewhat messed up, for certain tabs.
zellij --version
: 15tput lines
: 120tput cols
: 31uname -av
: Linux ezra 5.10.48 144 SMP Wed Jul 7 12:27:50 UTC 2021 x86_64 GNU/LinuxFurther information
alacritty --version
: 0.8.0Reproduce:
Screenshots:
Logs:
zellij-9.log
zellij-13.log
zellij-14.log
zellij-15.log
zellij-16.log
zellij-17.log
zellij-18.log
zellij-19.log
zellij-20.log
zellij-21.log
zellij-22.log
zellij-23.log
zellij-24.log
zellij-25.log
zellij-26.log
zellij-27.log
zellij-28.log
zellij-29.log
zellij-30.log
cc @imsnif
The text was updated successfully, but these errors were encountered: