From 9a145f30ff49a0141f342ea775e8f1a5b5899ae6 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 2 Jun 2026 18:09:48 -0500 Subject: feat(keys): friendlier which-key labels for the prefix sub-maps The C-; L sub-prefixes were labelled +fetch / +views / +edit / +create / +delete / +open / +copy / +workspace, the which-key submenu idiom but terse. They now read fetch... / views... / edit... / create... and so on: drop the +, add an ellipsis so the label reads as "do this, then pick what." Leaf commands and the direct hot keys are unchanged. These labels are the (LABEL . COMMAND) menu-item strings baked into pearl-prefix-map, so which-key, describe-prefix, and which-key-less lookups all pick them up with no which-key dependency. Pure label strings, no behavior change. The keymap-label test moved to the new wording. --- tests/test-pearl-keymap.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test-pearl-keymap.el b/tests/test-pearl-keymap.el index 9650652..49dbd31 100644 --- a/tests/test-pearl-keymap.el +++ b/tests/test-pearl-keymap.el @@ -167,9 +167,9 @@ literal my-open-issues fetch stays at f o (they are no longer the same command). (test-pearl-keymap--label-of pearl-views-map 'pearl-set-default-view))) (should (string= "switch account" (test-pearl-keymap--label-of pearl-workspace-map 'pearl-switch-account))) - (should (string= "+edit" (test-pearl-keymap--label-of pearl-prefix-map pearl-edit-map))) - (should (string= "+views" (test-pearl-keymap--label-of pearl-prefix-map pearl-views-map))) - (should (string= "+workspace" + (should (string= "edit..." (test-pearl-keymap--label-of pearl-prefix-map pearl-edit-map))) + (should (string= "views..." (test-pearl-keymap--label-of pearl-prefix-map pearl-views-map))) + (should (string= "workspace..." (test-pearl-keymap--label-of pearl-prefix-map pearl-workspace-map)))) (ert-deftest test-pearl-prefix-map-not-bound-at-load () -- cgit v1.2.3