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

Feature: add focus attribute to the layout #852

Closed
a-kenji opened this issue Nov 9, 2021 · 2 comments · Fixed by #958
Closed

Feature: add focus attribute to the layout #852

a-kenji opened this issue Nov 9, 2021 · 2 comments · Fixed by #958
Labels
layout issues related to the layout system

Comments

@a-kenji
Copy link
Contributor

a-kenji commented Nov 9, 2021

Add a focus or focused attribute to the layout, to specify which tab, or pane should have the focus,
once the layout is fully loaded.

@a-kenji a-kenji added the layout issues related to the layout system label Nov 9, 2021
@jaeheonji
Copy link
Member

jaeheonji commented Dec 13, 2021

Hi! @a-kenji
I am currently interested in this feature. I'd like to contribute to the implementation if possible, but I have a questions.

Is it correct that the focus is set for each tab? or Only have one of all the tabs and pane?

Ex) If there are 3-tabs and the 4th pane of the 2nd tab is focussed, zellij shows the foucs on the 4th pane of 2nd tab on the first start screen.

@a-kenji
Copy link
Contributor Author

a-kenji commented Jan 4, 2022

If there are 3-tabs and the 4th pane of the 2nd tab is focussed, zellij shows the foucs on the 4th pane of 2nd tab on the first start screen.

Yes, that is how I would imagined it! Thanks for the pr, I'll look at it soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
layout issues related to the layout system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants