-
Notifications
You must be signed in to change notification settings - Fork 275
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
diff-mode: disable single-letter cmds w/o respect to selection in "visual" #815
Conversation
@jojojames What's your thoughts? |
Wouldn't you want to move the key somewhere else than to remove it entirely? |
Sorry, I didn't know what modes |
It's just that I don't know, the |
motion -> normal is fine. |
…sual" These commands do not respect selection done by `visual` mode, and instead only work at (point). So running them in `visual` mode is confusing. In `insert` mode they don't run anyway. So let's move them to `normal` mode. Fixes: emacs-evil#810
decf14a
to
0cd8893
Compare
@jojojames done, please see if it looks okay now |
Actually, wait, I see another command that may be confusing when used in "visual" |
@jojojames okay, so, I'm afraid your idea with moving stuff under the "normal" is not working due to a bug somewhere. When I'm testing the current changes, while pressing d in "visual" I still see the hunk getting deleted even though it is no longer under "motion". |
Visual state is different from normal state. The changes here seem ok for fixing normal state&motion state for now. If you want to later fix visual state, we can figure that out separately. Closing this PR, but feel free to reopen if you think this is in a good state to merge. |
As mentioned in the original issue, the keybinding is confusing and problematic. There has been no opposing comments for 1.5 months, so let's go ahead and
removemake it to only work innormal
.Fixes: #810