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

Swap layout: Fall back to next layout #3

Merged
merged 1 commit into from
Jan 28, 2023

Conversation

MaxGyver83
Copy link
Contributor

@MaxGyver83 MaxGyver83 commented Jan 21, 2023

Pick the next layout (as fallback) when the user performs layout swap but a last layout is not yet defined

When I start a new a4 session and try to toggle/swap the layout (layout swap/C-a Tab) before I have switched the layout explicitly (for example via layout fullscreen/C-a f), nothing happens. While a4 can't know which layout I actually wanted to switch to, it's certain that I wanted to get a different layout.

With this pull request, the next layout (layout +1) gets activated as a fallback.

(Personally, I would prefer to set the fullscreen layout in such a case. But this would be a bad choice if the user has removed the fullscreen layout in the a4 config file.)

@rpmohn : Just decline if you don't like such a behavior. Then at least other users will find this patch when they search for it.

@rpmohn rpmohn merged commit 1009820 into rpmohn:main Jan 28, 2023
@rpmohn
Copy link
Owner

rpmohn commented Jan 28, 2023

Yeah, I like that, thanks!

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.

None yet

2 participants