fallback for commands: if no C-a C-b then try C-a b #164
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does it do?: right now when you type a command, let's say "a s", then god mode tries "C-a C-s" and that's it. This commit adds a fallback so if there is no binding for "C-a C-s" god mode will try for "C-a s" first and if there is no such a binding it will wait for next input.
Why I want it?: I have quite a lot of custom bindings like "C-a s" to choose persp or "C-a b i" to open ibuffer for a persp etc. Instead of remapping all my bindings (tedious) or type "b a SPC s" (b enters god mode on my setup), I though it would be cool to add fallback functionality as it is done in meow. Realization of the idea may have some flaws, I don't know how it works in meow exactly but for now it works for me.
Why I made a pr instead of just rewriting function in my init file?: I've already done that and I though that some other god-mode users may also find this functionality convenient.