[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 66e04a0164 1/7: Change: (hyperdrive-complete-hy
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 66e04a0164 1/7: Change: (hyperdrive-complete-hyperdrive) Add completion category |
Date: |
Sun, 12 Nov 2023 06:59:56 -0500 (EST) |
branch: elpa/hyperdrive
commit 66e04a0164731d84c829bbe268b1fc34cd67c080
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Change: (hyperdrive-complete-hyperdrive) Add completion category
This change allows users to override completion-styles and
completion-cycle-threshold when completing hyperdrives. It also
allows for Embark integration.
---
hyperdrive-lib.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index e458ae907d..78c7f21a4a 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -1064,7 +1064,15 @@ case, when PREDICATE, only offer hyperdrives matching
it."
(cons (hyperdrive--format-hyperdrive
hyperdrive) hyperdrive))
hyperdrives))
(completion-styles (cons 'substring completion-styles))
- (selected (completing-read prompt candidates nil 'require-match nil
nil default)))
+ (selected
+ (completing-read
+ prompt
+ (lambda (string predicate action)
+ (if (eq action 'metadata)
+ '(metadata (category . hyperdrive))
+ (complete-with-action
+ action candidates string predicate)))
+ nil 'require-match nil nil default)))
(or (alist-get selected candidates nil nil #'equal)
(hyperdrive-user-error "No such hyperdrive. Use `hyperdrive-new' to
create a new one"))))
- [nongnu] elpa/hyperdrive updated (0bb8c90827 -> 040fc00500), ELPA Syncer, 2023/11/12
- [nongnu] elpa/hyperdrive 040fc00500 7/7: Meta: (CHANGELOG) Note Embark integration, ELPA Syncer, 2023/11/12
- [nongnu] elpa/hyperdrive 48c060bcf4 4/7: Docs: Move ffap integration into own sub-subsection, ELPA Syncer, 2023/11/12
- [nongnu] elpa/hyperdrive 66e04a0164 1/7: Change: (hyperdrive-complete-hyperdrive) Add completion category,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 8aff760d4a 5/7: Docs: Document Embark integration, ELPA Syncer, 2023/11/12
- [nongnu] elpa/hyperdrive 6aac47ee6d 3/7: Add: (-embark-hyperdrive-map) Embark minibuffer integration, ELPA Syncer, 2023/11/12
- [nongnu] elpa/hyperdrive 0eaecc0748 2/7: Docs: Document completion category, ELPA Syncer, 2023/11/12
- [nongnu] elpa/hyperdrive 814d3146b9 6/7: Meta: (CHANGELOG) Note completion category addition, ELPA Syncer, 2023/11/12