diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-06 14:14:48 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-06 14:14:48 -0500 |
| commit | 0155eb670c2f9e072c34671537d95c716a54e011 (patch) | |
| tree | bbd9116f54347794afd4da01834a096890d39504 /tests | |
| parent | a4b332929099ad42c893b6940dcf43f1d48914a6 (diff) | |
| download | duet-0155eb670c2f9e072c34671537d95c716a54e011.tar.gz duet-0155eb670c2f9e072c34671537d95c716a54e011.zip | |
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."
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test-duet-pane.el | 4 |
1 files changed, 4 insertions, 0 deletions
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 "<f8>")))) (should (eq 'duet-quit (lookup-key duet-mode-map (kbd "<f10>"))))) +(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 () |
