kien / ctrlp.vim

Fuzzy file, buffer, mru, tag, etc finder.
kien.github.com/ctrlp.vim
7.26k stars 676 forks source link

is it possible to transform the input? #772

Closed good-idea closed 5 years ago

good-idea commented 5 years ago

I'm using ag, and trying to achieve an even "fuzzier" search that is closer to how VS Code works. For instance, with the following files:

fragments/projectFragment.ts
parsers/project.ts
ProjectView/styled.tsx
ProjectView/index.ts
ProjectView/ProjectView.tsx

I'd like to search for proj sty and get this to match ProjectView/styled.tsx.

In the terminal, I can do ag -i -g proj(.*)sty and get the result that I want.

Is there a way in vim to transform proj sty into proj(.*)sty?

(Or any other way of achieving a fuzzier search like this?)

good-idea commented 5 years ago

Oops, meant to post this in the ctrpl/ctrlp.vim repo. Anyway, i just realized that i can search for projsty and get what I want 😅