diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-25 01:25:43 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-25 01:25:43 -0500 |
| commit | 619d4ce0294ff318a96e2f82a8f9401111bb619d (patch) | |
| tree | 09afcbe17151ed3dda5a2043fd6625264611146c /tests/test-pearl-menu.el | |
| parent | 56511a51afc66bc7efebee657bf040624defde65 (diff) | |
| download | pearl-619d4ce0294ff318a96e2f82a8f9401111bb619d.tar.gz pearl-619d4ce0294ff318a96e2f82a8f9401111bb619d.zip | |
feat: add the pearl-prefix-map keymap and regroup the transient menu
The command surface had no muscle-memory path. Everything went through M-x or the transient, and the transient grouped commands by an ad-hoc mix (issue-at-point, create, org-sync) rather than by what you're doing.
I added pearl-prefix-map, an opt-in prefix keymap organized as save / edit / new / delete. It isn't bound at load, because a global multi-key prefix isn't reliably free across terminals and GUIs. Each binding is a (label . command) menu item, so which-key shows the label without pearl depending on which-key. The user binds the map to a free prefix (the README suggests C-; L). So C-; L s s saves the ticket at point, s a saves the whole file, e p edits priority, n t creates a ticket, m opens the transient.
I regrouped the transient to mirror those categories: Save, Edit, New, Delete for ticket actions, and Fetch, View, Setup for the workspace. I added the two save commands and relabeled every entry to the verb wording. The per-field push entries (edit-desc, edit-title) are gone since the save model subsumes them, though the commands still work from M-x. I pulled the org-sync commands (enable, disable, push-file) from the menu too, since they're plumbing, tracked separately for going private.
The keymap binds the existing command names. Aligning those names with the labels (edit-state, new-comment) is a separate task, as is the delete-comment command that will fill the d c slot.
Diffstat (limited to 'tests/test-pearl-menu.el')
| -rw-r--r-- | tests/test-pearl-menu.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-pearl-menu.el b/tests/test-pearl-menu.el index 1362b2e..8af4bb8 100644 --- a/tests/test-pearl-menu.el +++ b/tests/test-pearl-menu.el @@ -62,7 +62,8 @@ menu entry that still points at it fails here." (dolist (expected '(pearl-list-issues pearl-run-view pearl-run-saved-query - pearl-sync-current-issue + pearl-save-issue + pearl-save-all pearl-set-state pearl-add-comment pearl-new-issue |
