gustavo-hms / peneira

A fuzzy finder crafted for Kakoune
GNU Lesser General Public License v2.1
33 stars 5 forks source link

Select all matches #16

Open eko234 opened 1 year ago

eko234 commented 1 year ago

Hi Gustavo, hope all is good, Is there a way to select all matches of a fuzzy search? I want to be able to find some files matching a certain path.

gustavo-hms commented 1 year ago

Hi, @eko234 !

It is possible to implement that, but it must be done on a filter-by-filter basis. That is, I can implement that for peneira-files and (the yet-to-be-release) peneira-grep. But there's isn't a general way to implement that for any built-in and custom filter, since that must be done in the cmd part (that is, the last argument) of the peneira command, where custom logic for the filter is implemented.

But I like the idea.

For which filters do you think this feature would be more useful?

eko234 commented 1 year ago

I find it useful for files/grep, like when I want to do something with certain files with certain patterns in certain dirs. In other words, narrowing a scope.