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

pane should go to previously active when possible #230

Closed
jcaplan opened this issue Mar 13, 2021 · 1 comment · Fixed by #294
Closed

pane should go to previously active when possible #230

jcaplan opened this issue Mar 13, 2021 · 1 comment · Fixed by #294
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jcaplan
Copy link
Contributor

jcaplan commented Mar 13, 2021

consider this layout:
image

If I am in the top right pane and then move to the left pane and then back to the right again, zellij chooses the bottom right pane.
I think it is reasonable to expect the top right pane (i.e. the last active pane to the right) to become active when moving back to the right.

The algorithm that determines which pane to move to when multiple panes are on the border of the active pane should give precedence to the last active pane.

@imsnif imsnif added good first issue Good for newcomers help wanted Extra attention is needed labels Mar 15, 2021
@dantepippi
Copy link
Contributor

I could take a look at it.

TheLostLambda added a commit that referenced this issue Apr 23, 2021
Adding field active_at and using it to sort panes. This closes #230 by resolving ambiguous movements in favor of the most-recently visited pane.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants