[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico fe0eb1e 01/10: Change prompt selection again
From: |
Protesilaos Stavrou |
Subject: |
[elpa] externals/vertico fe0eb1e 01/10: Change prompt selection again |
Date: |
Fri, 9 Apr 2021 10:48:28 -0400 (EDT) |
branch: externals/vertico
commit fe0eb1e4d001e9e3f7b1e723bbcf699f4b936abf
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Change prompt selection again
This is a refinement of 5e5192fbcbee314e056f2db356aedd9f6187db0c. This
commit
fixes two issues:
- If you have "~/emacs-pkg/", it selects first the prompt, then you enter
"~/emacs-pkg/verti" it selects the "vertico/" candidate. Then you finish
typing "~/emacs-pkg/vertico" and it jumps back to the prompt, since this
is a
valid input. I would prefer if it would jump back when I type the
additional
slash "~/emacs-pkg/vertico/".
- If you start at "/" and enter "/usr" it selects the prompt and if you now
press TAB it does not complete to "/usr/" since the "/usr" prompt is still
valid and in this case vertico-insert does nothing. This breaks tabbing
through directories.
cc @oantolin
---
vertico.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/vertico.el b/vertico.el
index fe2b47b..4d8e2bb 100644
--- a/vertico.el
+++ b/vertico.el
@@ -282,12 +282,12 @@
(idx (seq-position candidates old)))
;; Update index, when kept candidate is found in new candidates
list.
(setq vertico--index idx)
- ;; Otherwise select the prompt for missing candidates or matching
inputs,
- ;; except if the input matches the first candidate.
+ ;; Otherwise select the prompt for missing candidates or for matching
inputs,
+ ;; as long as the input after the boundary is empty.
(setq vertico--keep nil
vertico--index
(if (or (not candidates)
- (and (not (equal (vertico--input-after-boundary input)
(car candidates)))
+ (and (equal (vertico--input-after-boundary input) "")
(test-completion input minibuffer-completion-table
minibuffer-completion-predicate)))
-1 0))))
- [elpa] externals/vertico updated (1fc43bb -> f48679b), Protesilaos Stavrou, 2021/04/09
- [elpa] externals/vertico fe0eb1e 01/10: Change prompt selection again,
Protesilaos Stavrou <=
- [elpa] externals/vertico 9905c28 03/10: Ensure that completion cycling of default completion works, Protesilaos Stavrou, 2021/04/09
- [elpa] externals/vertico 3b54a1c 04/10: README: Document default completion bindings, Protesilaos Stavrou, 2021/04/09
- [elpa] externals/vertico 9c8f91f 05/10: README: Generate vertico.texi, Protesilaos Stavrou, 2021/04/09
- [elpa] externals/vertico c9d7c18 07/10: Update the candidates when moving the point, Protesilaos Stavrou, 2021/04/09
- [elpa] externals/vertico 5a9af18 06/10: Do not extend the prompt highlighting (See #7), Protesilaos Stavrou, 2021/04/09
- [elpa] externals/vertico 6f6d345 02/10: vertico--recompute-candidates: Move directory to the top if it matches input, Protesilaos Stavrou, 2021/04/09
- [elpa] externals/vertico 61f799f 08/10: Compute completion boundaries only once (Optimization), Protesilaos Stavrou, 2021/04/09
- [elpa] externals/vertico f48679b 10/10: Remove Consult integration, which has been moved to Consult, Protesilaos Stavrou, 2021/04/09
- [elpa] externals/vertico 69fd917 09/10: Remove Embark integration, which has been moved to Embark, Protesilaos Stavrou, 2021/04/09