Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Use `;` to filter the match results #400

Open
happypeter opened this Issue · 8 comments

4 participants

Peter Wang kien Chris Corbyn Sebastián Grignoli
Peter Wang

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

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

kien kien closed this
kien
Owner

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
Peter Wang

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.

Chris Corbyn

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

Peter Wang

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

kien
Owner

maybe we can mark this somewhere in the help file.

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

Peter Wang

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

Sebastián Grignoli

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
Something went wrong with that request. Please try again.