diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-13 11:06:49 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-13 11:06:49 -0500 |
| commit | b62af09673bf3c4190305b745992e25145afafa8 (patch) | |
| tree | dbd331010b6150aad8187e6bfb319ca0f8701a70 /modules/selection-framework.el | |
| parent | 23b8166c230f366bf780c1aad76e5896b525fa69 (diff) | |
| download | dotemacs-b62af09673bf3c4190305b745992e25145afafa8.tar.gz dotemacs-b62af09673bf3c4190305b745992e25145afafa8.zip | |
fix: vertico-repeat C-s and dotted-repo discovery (audit bugs)
Two bugs from the 2026-06 config audit.
- C-s C-s never repeated a search. cj/consult-line-or-repeat calls vertico-repeat on the second press, but vertico-repeat-save was never on minibuffer-setup-hook, so it always signalled "No Vertico session". I hooked vertico-repeat-save next to the vertico block. It's autoloaded, so the load defers to the first minibuffer.
- reconcile-open-repos skipped any repo with a dot in its name. cj/find-git-repos filtered children through "^[^.]+$", which matches only dot-free names, so mcp.el, capture.el, and google-contacts.el were never reconciled while M-P still reported "Complete". It now filters through directory-files-no-dot-files-regexp plus a hidden-dir guard, so dotted repos pass and .git stays out.
Each fix is test-first: a failing assertion (hook membership, three dotted repos found) precedes the change.
Diffstat (limited to 'modules/selection-framework.el')
| -rw-r--r-- | modules/selection-framework.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/selection-framework.el b/modules/selection-framework.el index 11687337..1f5d6dfc 100644 --- a/modules/selection-framework.el +++ b/modules/selection-framework.el @@ -47,6 +47,11 @@ :init (vertico-mode)) +;; Save each completion session so `vertico-repeat' (the second C-s in +;; `cj/consult-line-or-repeat') has a session to resume. `vertico-repeat-save' +;; is autoloaded, so this defers loading vertico-repeat until the first minibuffer. +(add-hook 'minibuffer-setup-hook #'vertico-repeat-save) + (use-package marginalia :demand t :custom |
