-
Notifications
You must be signed in to change notification settings - Fork 280
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
Add "zg" and "zG" bindings #1491
base: master
Are you sure you want to change the base?
Conversation
Why it failed on Emacs 24.5 only? |
I can't figure out why it failed only on Emacs 24.5. Download the Emacs 24.5 tarball, grep every symbol in the |
See #1487 (comment) |
I see... |
@wasamasa ping |
More general issue: The Vim helpfile claims a few more things about those commands:
|
No,
"zG" adds the word to the We can't mimic vim perfectly, so which one is better is arguable.
Personally, I prefer the third one, it's more orthogonal. Thoughts? EDITED: Playing in vim, it's non-rerepeatable.
I try to avoid this when implementating. Consider the following case: |
:'( it's me |
Uh-oh. I'd consult with the Doom people then. Maybe they'd prefer your approach. Maybe their approach is worth using.
Agreed, the third option makes most sense.
OK, so not repeatable and no handling of visual mode either. In that case it's debatable whether |
Updated. I found the session is also buffer-local which is different with vim. Perhaps making "zg" add words to personal and "zG" add words to buffer-local/session-buffer-local is reasonable? |
Updated. string without properties will be used. @wasamasa |
Implements evil-ispell-mark-word-as-good and evil-ispell-mark-word-as-locally-good
Opinions from @hlissner |
According to https://vimhelp.org/spell.txt.html,
zg
wouldzG
wouldispell has no concept of
internal-wordlist
, but it provides a local words instead.