help with multi string searches #512
Replies: 2 comments
-
You have Give |
Beta Was this translation helpful? Give feedback.
-
thanks for the kind response. config of orderless it is! removing substring from apols for not knowing where to ask. |
Beta Was this translation helpful? Give feedback.
-
hi, thanks for this package.
i'm new to corfu (& orderless, vertico, embark, the whole family), so bear with me if this is old news. I've searched the repo for this issue, but not very well because it's unclear to me what to search for.
i'm struggling with multistring matching.
i know about
corfu-separator
, but i can't get it to work as i would like it to in elisp code.my corfu config:
my orderless:
say i'm typing a call to a function in package
mastodon
:and it has five words in its name all separated by hyphens. i know the last or second last one, but not the intermediate terms (the first of which names the subpackage the function is in, and maybe i've forgotten that, or i just forget the word order of the name).
if i change
corfu-separator
to a hyphen (char 45) rather than a space, i'd hope to be able to type sayskipping the intermediate words. but it doesn't work, i get no candidates, whether i type
-
or insert it withM-SPC
.a concrete example:
returns "no match". but mastodon.el is huge and has many
get
functions, it's just that none of them start withmasto-get
.ie. using the full package prefix, also doesn't work.
if i return the separator to the default space, and insert it using
M-SPC
, then it works:(masto get
is there a clash between the separator and the function characters? i can't grok why there would be. i would even have thought that splitting terms by both hyphen and space should work.
another example that i understand less well:
I type
C-x 8 RET
, then typerh
only. The sole candidate isRHINOCEROS
, but i'm looking for Greek rho. I typeo
to makerho
, and only then do all the rho candidates appear. Why doesrh
not match them? It seems to be because no candidate names begin with the lettersrh
, but why is that how the query works? If typeC-x 8 RET M-SPC rh
, then it works. This is really tricky, because it makes you think there are no results, not just that they aren't displaying but that they don't exist... A more generous, less parsimonious, matching style would be in order here. Is it possible to configure one simply?Thanks for any pointers.
Beta Was this translation helpful? Give feedback.
All reactions