diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-26 05:15:44 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-26 05:15:44 -0400 |
| commit | 8e995fb62694c4fe81d59d512ec14a50c99df34a (patch) | |
| tree | d6866932841c891559ca4cabee0b11a550e62c68 /tests/test-system-utils-commands.el | |
| parent | 1924d87f4b92526d9180b52c4fbd9e66ae25acdc (diff) | |
| download | dotemacs-8e995fb62694c4fe81d59d512ec14a50c99df34a.tar.gz dotemacs-8e995fb62694c4fe81d59d512ec14a50c99df34a.zip | |
chore(ibuffer): put diff on d and delete on D
In the ibuffer buffer list, d now diffs the buffer at point against its saved file (ibuffer-diff-with-file, was on =) and D marks it for deletion (was on d; x still executes the marks).
Diffstat (limited to 'tests/test-system-utils-commands.el')
| -rw-r--r-- | tests/test-system-utils-commands.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test-system-utils-commands.el b/tests/test-system-utils-commands.el index b7b61dc22..6f2099a24 100644 --- a/tests/test-system-utils-commands.el +++ b/tests/test-system-utils-commands.el @@ -90,5 +90,14 @@ and lands in a dedicated output buffer." (should saved) (should killed))) +;;; ibuffer delete/diff keybinding swap + +(ert-deftest test-system-utils-ibuffer-d-diffs-D-deletes () + "Normal: in the ibuffer list, d diffs the buffer at point against its file and +D marks it for deletion (the swap of ibuffer's default d/= bindings)." + (require 'ibuffer) + (should (eq (keymap-lookup ibuffer-mode-map "d") #'ibuffer-diff-with-file)) + (should (eq (keymap-lookup ibuffer-mode-map "D") #'ibuffer-mark-for-delete))) + (provide 'test-system-utils-commands) ;;; test-system-utils-commands.el ends here |
