Skip to content

feat(zellij-server,zellij-utils): Add previous boolean to TabInfo #4204

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

fostertheweb
Copy link

@fostertheweb fostertheweb commented May 19, 2025

This PR adds a previous boolean to TabInfo to more easily identify the previously focused tab. For plugins like zjstatus, it would be great to have the ability to check which tab was previously focused via TabInfo. This allows you to apply specific formatting like I would setup in tmux. It provides a visual indication which tab will be focused when ToggleTab is invoked.

I explored doing this with the changes from #4014, however, the tab history being available when handling SessionUpdate is not sufficient for updating tab formatting.

Example Formatting

404355311-bc689252-6adb-4067-8f4f-f007ac3a5e9d

@fostertheweb fostertheweb marked this pull request as ready for review May 19, 2025 16:52
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