diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-02 20:38:06 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-02 20:38:06 -0500 |
| commit | f71d91d65f53e0d2a8f89b5fd9e8d65bc21bb838 (patch) | |
| tree | 2517b7f77ee5c1c655df71f1e8ea66d3b8a5910a /modules/dev-fkeys.el | |
| parent | e58ad9ea61a6fe527d5f21298d4012b7808bf981 (diff) | |
| download | dotemacs-f71d91d65f53e0d2a8f89b5fd9e8d65bc21bb838.tar.gz dotemacs-f71d91d65f53e0d2a8f89b5fd9e8d65bc21bb838.zip | |
feat(ui): name the operation in completing-read prompts
A picker prompt is the last thing shown before a command commits, so a bare noun leaves a mis-keyed command ambiguous. Hitting C-f8 (project agenda) instead of C-f9 (AI-vterm picker) gave the same "Project:" prompt with no signal which one was about to run.
Reworded 17 prompts across 8 modules so each names the operation rather than just the thing being chosen: "Project:" becomes "Show agenda for project:", "F6:" becomes "Run tests:", the dwim-shell sub-prompts gain their context (checksum algorithm, PDF compression quality, text-to-speech voice, run dwim-shell command), the two contact pickers split into "Find contact:" and "Insert contact email:", and the dirvish ediff, org finalize, and custom-comments length/box-style prompts get the same treatment.
I audited all ~124 completing-read / read-* call sites; the rest already named their operation and were left alone. These are prompt-string changes only, no logic touched.
Diffstat (limited to 'modules/dev-fkeys.el')
| -rw-r--r-- | modules/dev-fkeys.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/dev-fkeys.el b/modules/dev-fkeys.el index 00a467743..9fdfa5b3f 100644 --- a/modules/dev-fkeys.el +++ b/modules/dev-fkeys.el @@ -459,7 +459,7 @@ Prompts via `completing-read' between \"All tests\" (delegates to `cj/--f6-current-file-tests-impl')." (interactive) (let* ((candidates '("All tests" "Current file's tests")) - (label (completing-read "F6: " candidates nil t nil nil (car candidates)))) + (label (completing-read "Run tests: " candidates nil t nil nil (car candidates)))) (pcase label ("All tests" (projectile-test-project current-prefix-arg)) ("Current file's tests" |
