-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
How do I set the gap for a specific mode? #369
Comments
Alternatively if #355 gets fixed [mode.main.binding]
alt-shift-semicolon = ['mode service', 'config --set gaps.outer.top 0']
[mode.service.binding]
esc = ['mode main', 'config --set gaps.outer.top 10'] [gaps]
outer.top = 'echo $GAPS || echo 0'
[mode.main.binding]
alt-shift-semicolon = ['mode service', 'set-env GAPS 0']
[mode.service.binding]
esc = ['mode main', 'set-env GAPS 10'] |
I had a similar need. I was trying to implement something like a "Zen Mode" by putting large left right gaps on a fullscreen window. So maybe the dynamic config setter would help with that.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm a modal junkie, so I like my modal experiences. This mean's I prefer to have a single key-binding to change from main mode to an alt mode. In the alt mode I will have all my bindings for my commands as well as a binding to exit back to main. This minimizes chording in my keybindings.
However, I like modal experiences where I can show a clear indicator to whether I am in a particular mode. This visual indicator aids in communicating to the user what mode is currently activated. I figured the gap config would be perfect for this: I'd have gaps set to 0 in main mode, and 10 in my alt mode.
How do I configure the toml file such that the gap is set but only for a specific mode?
The text was updated successfully, but these errors were encountered: