Skip to content

Swap layout: Fall back to next layout - #3

Merged
rpmohn merged 1 commit into
rpmohn:mainfrom
MaxGyver83:set-default-swap-layout
Jan 28, 2023
Merged

Swap layout: Fall back to next layout#3
rpmohn merged 1 commit into
rpmohn:mainfrom
MaxGyver83:set-default-swap-layout

Conversation

@MaxGyver83

@MaxGyver83 MaxGyver83 commented Jan 21, 2023

Copy link
Copy Markdown
Contributor

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

rpmohn commented Jan 28, 2023

Copy link
Copy Markdown
Owner

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.

2 participants