prescient.el icon indicating copy to clipboard operation
prescient.el copied to clipboard

How to disallow overlapping matches?

Open yuhan0 opened this issue 10 months ago • 1 comments

Is there any way to configure Prescient's to match candidates in such a way that queries don't overlap?

For example, I might type M-x comp com when trying to filter for the command company-complete, only to find that the first word company has been matched 'twice', making the last few keystrokes redundant - requiring more typing to get past the duplicated portion (comp compl) or else having to consciously backtrack and construct things differently, eg. adding a prefix the second time (comp -com)

None of the various options for prescient-filter-method appear to address this, as each subquery is still treated independently and can overlap or match in any order, which leads to these cases where the user input seems to get ignored.

yuhan0 avatar Mar 14 '25 02:03 yuhan0

Yeah, this is not currently supported. Good idea, though.

It's a bit challenging in terms of implementation.

raxod502 avatar Mar 15 '25 03:03 raxod502