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

fix(layouts): naming and gototabname #2225

Merged
merged 3 commits into from
Mar 6, 2023
Merged

fix(layouts): naming and gototabname #2225

merged 3 commits into from
Mar 6, 2023

Conversation

imsnif
Copy link
Member

@imsnif imsnif commented Mar 6, 2023

This fixes three bugs:

  1. Tab names in layouts were sometimes being ignored - this was caused due to a race condition between the pty and screen threads. Fixed by simplifying some needless roundtrips for the tab_name string and just applying it initially in the screen thread
  2. The GoToTabName action would crash when creating a tab, this was fixed by removing the self.is_pending = false statement in the various layout applying method and only leaving it in the main one (not really sure why they were there in the first place...)
  3. The GoToTabName now uses the default shell when creating new tabs (with the --create flag)

Thanks @har7an for finding the first issue!

@imsnif imsnif temporarily deployed to cachix March 6, 2023 10:30 — with GitHub Actions Inactive
@imsnif imsnif merged commit 57e8ca0 into main Mar 6, 2023
joshheyse pushed a commit to joshheyse/zellij that referenced this pull request Mar 11, 2023
* fix(layouts): properly apply tab name

* fix(gototabname): do not crash and properly apply default shell

* style(fmt): rustfmt
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

Successfully merging this pull request may close these issues.

1 participant