ctrlp-cmatcher icon indicating copy to clipboard operation
ctrlp-cmatcher copied to clipboard

Cmatcher matches whole string in Tag mode

Open DXist opened this issue 10 years ago • 4 comments

Cmatcher should match just tag name in Tag mode. Now it matches whole string.

DXist avatar May 31 '14 15:05 DXist

Works good for me. Can you give a test case?

JazzCore avatar May 31 '14 16:05 JazzCore

I've shared sample tags file. Results for 'Good' query:

Stock matcher Cmatcher

Stock matcher puts short match at the bottom. When I add tags from project virtualenv things get even worse.

DXist avatar Jun 01 '14 05:06 DXist

This differs from the issue that you've mentioned in title, doesnt it? I see that cmatcher properly matches only in tag names (tag comments does not even get passed to matcher).

Regarding your test case, I'm seeing different results with stock matcher ( it does not show 'Good' on top of results ), when cmatcher results are the same. It can be a flaw in matcher algorithm, I'll see what I can do.

JazzCore avatar Jun 01 '14 19:06 JazzCore

You are right. I've changed the title to express my problem better.

DXist avatar Jun 05 '14 07:06 DXist