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.
Later we use lookup-key in this way:
(lookup-key aux-map (kbd (car cmd)))
which was slightly different from how we were defining the keymap which resulted
in M-j & M-k not being bound or displayed properly.