From 0155eb670c2f9e072c34671537d95c716a54e011 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 6 Jun 2026 14:14:48 -0500 Subject: fix: quit the whole commander on q, not just one pane In a pane, q ran dired's quit-window, which closes only the window it is in, so quitting left the other pane behind. Binding q to duet-quit in duet-mode-map makes it tear down both panes and restore the pre-launch layout, the same as F10. q is the key a commander user reaches for, so it should mean "leave the commander," not "close this window." --- tests/test-duet-pane.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/test-duet-pane.el b/tests/test-duet-pane.el index 181309b..df9866b 100644 --- a/tests/test-duet-pane.el +++ b/tests/test-duet-pane.el @@ -57,6 +57,10 @@ (should (eq 'duet-delete (lookup-key duet-mode-map (kbd "")))) (should (eq 'duet-quit (lookup-key duet-mode-map (kbd ""))))) +(ert-deftest test-duet-pane-q-quits-the-commander () + "q quits the whole commander (both panes), not just dired's current window." + (should (eq 'duet-quit (lookup-key duet-mode-map (kbd "q"))))) + ;;; Minor-mode precedence (ert-deftest test-duet-pane-mode-is-buffer-local () -- cgit v1.2.3