Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions modes/diff-mode/evil-collection-diff-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ current file instead."

"q" 'quit-window

"a" 'diff-apply-hunk
"*" 'diff-refine-hunk
"D" 'diff-file-kill
"d" 'diff-hunk-kill
"s" 'diff-split-hunk
"c" 'diff-test-hunk

"\\" 'read-only-mode) ; magit has "\"

(evil-collection-define-key 'motion 'diff-mode-map
Expand All @@ -119,17 +126,10 @@ current file instead."
(kbd "RET") 'diff-goto-source
"A" 'diff-add-change-log-entries-other-window

"a" 'diff-apply-hunk
"*" 'diff-refine-hunk
"D" 'diff-file-kill
"d" 'diff-hunk-kill

"ge" 'diff-ediff-patch
"i" 'next-error-follow-minor-mode
"o" 'evil-collection-diff-toggle-restrict-view
"~" 'diff-reverse-direction
"s" 'diff-split-hunk
"c" 'diff-test-hunk
"x" 'evil-collection-diff-toggle-context-unified
"#" 'diff-ignore-whitespace-hunk

Expand Down
Loading