filter duplicates on g:ctrlp_lines while preserving order#367
filter duplicates on g:ctrlp_lines while preserving order#367timfeirg wants to merge 2 commits intoctrlpvim:masterfrom
Conversation
|
hmm - i still don't reproduce the issue actually |
|
This would appear when one file appears in both files and MRU files at the same time. steps to reproduce:
I can firmly reproduce using the above steps. |
|
Current implementation doesn't remove duplicates. |
8e61364 to
e4d8ccb
Compare
|
I've been using my own fork without a problem, didn't notice any performance regression, would you be interested in merging this PR? I mean, until a better implementation is introduced? @mattn I think it's probably best to filter out duplicates just before the ctrlp pane is rendered, but I haven't been able to pinpoint the code that does this. |
|
I want to look your diff. And figure out what is problem. |
|
Dear developers, since #370 couldn't resolve this issue, would you be interested in merging this PR for the time being? We can, of course, revert this PR when a better implementation can be introduced. Without duplicate filtering, |
|
Before merging, I want to reproduce this. |
|
I'm on e66b5b5 and I can still reproduce this following the steps in #367 (comment) |
To fix expression in the help doc for more clarity.

This closes #314, #168
This may not be the best implementation, but it should only affect performance when refreshing a very large
:CtrlPMixedlists.I have very little experience with vimL, the project code hasn't been easy for me to understand, I'm not very sure where and how to implement this at all, I'll be glad to take any advises and fix up my commit.
@mattn