feat(vertico): add orderless annotation filtering
Ref: oantolin/orderless#162
This commit is contained in:
parent
cd16150b80
commit
222dc47060
1 changed files with 3 additions and 0 deletions
|
@ -83,6 +83,9 @@ orderless."
|
||||||
((string= "!" pattern) `(orderless-literal . ""))
|
((string= "!" pattern) `(orderless-literal . ""))
|
||||||
;; Without literal
|
;; Without literal
|
||||||
((string-prefix-p "!" pattern) `(orderless-without-literal . ,(substring pattern 1)))
|
((string-prefix-p "!" pattern) `(orderless-without-literal . ,(substring pattern 1)))
|
||||||
|
;; Annotation
|
||||||
|
((string-prefix-p "&" pattern) `(orderless-annotation . ,(substring pattern 1)))
|
||||||
|
((string-suffix-p "&" pattern) `(orderless-annotation . ,(substring pattern 0 -1)))
|
||||||
;; Character folding
|
;; Character folding
|
||||||
((string-prefix-p "%" pattern) `(char-fold-to-regexp . ,(substring pattern 1)))
|
((string-prefix-p "%" pattern) `(char-fold-to-regexp . ,(substring pattern 1)))
|
||||||
((string-suffix-p "%" pattern) `(char-fold-to-regexp . ,(substring pattern 0 -1)))
|
((string-suffix-p "%" pattern) `(char-fold-to-regexp . ,(substring pattern 0 -1)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue