feat(vertico): add char-fold style dispatcher
affixing with % uses char-fold-to-regexp on the input
This commit is contained in:
parent
26014435b2
commit
c0fd2c37cd
2 changed files with 10 additions and 6 deletions
|
@ -41,6 +41,9 @@ overrides `completion-styles' during company completion sessions.")
|
|||
((string= "!" pattern) `(orderless-literal . ""))
|
||||
;; Without literal
|
||||
((string-prefix-p "!" pattern) `(orderless-without-literal . ,(substring pattern 1)))
|
||||
;; Character folding
|
||||
((string-prefix-p "%" pattern) `(char-fold-to-regexp . ,(substring pattern 1)))
|
||||
((string-suffix-p "%" pattern) `(char-fold-to-regexp . ,(substring pattern 0 -1)))
|
||||
;; Initialism matching
|
||||
((string-prefix-p "`" pattern) `(orderless-initialism . ,(substring pattern 1)))
|
||||
((string-suffix-p "`" pattern) `(orderless-initialism . ,(substring pattern 0 -1)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue