aboutsummaryrefslogtreecommitdiff
path: root/tests/test-music-config--header-text.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-21 22:25:01 -0500
committerCraig Jennings <c@cjennings.net>2026-07-21 22:25:01 -0500
commitdeedf75cead6e8860f66f5e9e5fe66b8ed92f083 (patch)
tree9f7d7c0ba3487d95d942c92e49a5266ca90630a5 /tests/test-music-config--header-text.el
parenta1b5ad8ee7bc808d166ce89998aac8ae7bd67840 (diff)
downloaddotemacs-deedf75cead6e8860f66f5e9e5fe66b8ed92f083.tar.gz
dotemacs-deedf75cead6e8860f66f5e9e5fe66b8ed92f083.zip
feat(music): move single to 1, save to s, drop the stop key
In the playlist buffer, single-track mode moves off s onto 1 and save moves off v onto s. The stop key (S) is gone, since SPC/pause already covers stopping. The Mode/Keys header legend follows, and v is now unbound. Stop is still reachable from the global music prefix (C-; m s).
Diffstat (limited to 'tests/test-music-config--header-text.el')
-rw-r--r--tests/test-music-config--header-text.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test-music-config--header-text.el b/tests/test-music-config--header-text.el
index 8de97350..c860c6d4 100644
--- a/tests/test-music-config--header-text.el
+++ b/tests/test-music-config--header-text.el
@@ -139,6 +139,23 @@
(should (string-match-p "consume" plain))))
(test-header--teardown)))
+(ert-deftest test-music-config--header-text-boundary-key-hints-single-save-stop ()
+ "Header key hints: single is on 1, save is on s, and stop (S) is gone.
+SPC/pause covers stop, so the S:stop hint and the [s] single / v:save hints
+are retired."
+ (unwind-protect
+ (progn
+ (test-header--setup-playlist-buffer '("/music/a.mp3"))
+ (let* ((header (with-current-buffer cj/music-playlist-buffer-name
+ (cj/music--header-text)))
+ (plain (test-header--strip-properties header)))
+ (should (string-match-p "\\[1\\] single" plain))
+ (should (string-match-p "s:save" plain))
+ (should-not (string-match-p "\\[s\\] single" plain))
+ (should-not (string-match-p "v:save" plain))
+ (should-not (string-match-p "S:stop" plain))))
+ (test-header--teardown)))
+
;;; Error Cases
(ert-deftest test-music-config--header-text-error-empty-playlist-shows-zero-count ()