This change adjusts the formatting of the instructions in the `git-rebase`
buffer to allow them to be properly formatted when git's `core.commentChar` is
set to `%`. In particular, lines will look something like this:
```
%-8s p
```
The root cause seems to be the how the lines are constructed: comment characters
are directly added to the format string. When it is `%`, `format` appears to
proceed until it finds the next `%` character, (corresponding to the `%` in
`%-8s`) above and prints it directly to the string rather than interpreting it
something to format.
This is fixed by constructing the format string with the comment character as an
argument to `format` rather than being added directly to the format string.
Fixes#468.
This is for attaching additional keys to operator commands.
e.g. Add "f" to prefix/operator (evil-yank) "y" to get
"yf"
while still maintaining the other operator commands like "yy".
Since these bindings have a potential usage clash with "gr", we add an
additional option here to do disable for the case where the user wants to keep
"gr" in their non programming modes but don't want find-refs type keybindings in
their programming modes.
g? may be another good candidate for finding references.
The complicated condition in `evil-collection-company-supported-p` from the
previous commit got removed in favour of a new condition that check if
`evil-mode` is not active and returns true.
This update uses `evil-collection-company-supported-p` to handle the logic of
showing company completions when `evil-mode` is active/inactive and in a
supported buffer.
If applied, this commit will:
* Help `evil-collection` to determine supported states when `evil-mode` is active/inactive
* Fix the bug caused by `evil-collection-company-supported-p` where it inhibits company completions from showing due to not being in `evil-mode`
Evil-collection package inhibits company from showing completions when evil-mode
is switched off. This commit will fix it and only activate evil-collection
advice for company-mode when in evil-mode.
If applied, this commit will:
* Allow `company-mode` to show completions when not in `evil-mode`.
* Only activate `evil-collection` advice for `company-mode` when in
`evil-mode`.
* Fixes#451.