Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Put new window next in stack vs top #2387

Closed
jbriales opened this issue Aug 10, 2024 · 6 comments
Closed

Put new window next in stack vs top #2387

jbriales opened this issue Aug 10, 2024 · 6 comments
Labels
suggestion Request for new feature or some form of enhancement

Comments

@jbriales
Copy link

It seems currently when focused in a stack, a new created window goes to the top of it (rather than after the current window).

E.g. if there is a stack with 4 elements, and I'm focused in the one with index 2 and create a new one, it'll have index 5.
I'd like for the new window to go right after the current (2), so it gets into position 3 and everything afterwards gets moved a position up.

E.g.
Before: a , [b] , c, d
After (current): a, b, c, d, [new]
After (desired): a, b, [new], c, d

Would it be possible to modify the stack default config to behave in this manner?

If not, is there any alternative flow to achieve a similar effect?
So far I only saw --swap to change the order of windows in the stack, but it doesn't seem compatible with "inserting" within the stack.

@koekeishiya
Copy link
Owner

Sounds like reasonable default behavior. I'll look into it at some point.

@koekeishiya koekeishiya added the suggestion Request for new feature or some form of enhancement label Aug 10, 2024
@jbriales
Copy link
Author

Do you have some code pointer to the relevant logic in case I gave it a try in local-dev first?

@jbriales
Copy link
Author

Awesome, tried in HEAD and it works!

@jbriales
Copy link
Author

Sth I noticed though: Now some windows (e.g. Chrome browser) do not go into the stack when created.
Not sure if this might be due to some conflict with the rest of my configuration or related to this change.

@jbriales
Copy link
Author

Sth I noticed though: Now some windows (e.g. Chrome browser) do not go into the stack when created. Not sure if this might be due to some conflict with the rest of my configuration or related to this change.

It seems this fixed itself after reboot. Not sure if there is sth I should look at in logs if this occurs again to root-cause it.

@koekeishiya
Copy link
Owner

Not related to this change. If you find a way to reproduce the problem, feel free to create a new issue.

@koekeishiya koekeishiya removed the addressed on master; not released Fixed upstream, but not yet released label Sep 17, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
suggestion Request for new feature or some form of enhancement
Projects
None yet
Development

No branches or pull requests

2 participants