Use `;` to filter the match results #400

Open
happypeter opened this Issue May 2, 2013 · 8 comments

Projects

None yet

4 participants

@happypeter

Just switched from fuzzyfinder a week ago, ctrlp brings me many things I wish fuf have, yes, it's cool.

One thing I do miss is the ; operator when you typing matching strings with fuf. Say, I have two files named "good_controller" and "bad_controller", with fuf I could first type controller, then I got two matches of course, but instead of deleting and retyping, I could add ;good to the end of controller. Now I got the only match.

Yes, there is always the thing that comes BEFORE what I already typed(surely it's getting more so when I am in path mode). So @kien do you think ; is nice to have?

@kien
Owner
kien commented May 2, 2013

That already exists. You can use ; in filename mode to filter the directories in front of the filename.

@kien kien closed this May 2, 2013
@kien
Owner
kien commented May 2, 2013

Oh I'm sorry, what you're proposing is a bit different. It's indeed nice to have. I'll look into improving the existing ;.

@kien kien reopened this May 2, 2013
@happypeter

You can use ; in filename mode to filter the directories in front of the filename.

I didn't realized I could do this when I was trying the ;, thx, but maybe we can mark this somewhere in the help file. This is cool, but for me, not as cool as what I had with fuzzyfinder.

What is practically sweeter for my daily use is that we can make this work in both filename and path mode, and what comes after ; can either be part of a filename or dir names. It's to me not only more powerful but also more natural.

@d11wtq
d11wtq commented May 2, 2013

@happypeter so basically just see ; as an AND operator? this;and that;and the other.

@happypeter

@d11wtq Yes. For me this is a live saving thing. It means the order doesn't matter any more.

@kien
Owner
kien commented May 2, 2013

maybe we can mark this somewhere in the help file.

It's mentioned in the help file, actually, under the ctrlp-input-formats section.

@happypeter

@kien Thx, did not do enough homework, only searched ;, not semicolon 😄

@neitanod

So... does CtrlP have an AND operator?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment