ctrlpvim / ctrlp.vim

Active fork of kien/ctrlp.vim—Fuzzy file, buffer, mru, tag, etc finder.
ctrlpvim.github.com/ctrlp.vim
Other
5.58k stars 260 forks source link

Reflect "g:ctrlp_match_current_file" in CtrlPMRUFiles even when using "g:ctrlp_match_func" #630

Closed hokorobi closed 1 month ago

hokorobi commented 1 month ago

Would it be useful to add an option to CtrlPBuffer to hide the current buffer? Documentation has not yet been updated.

mattn commented 1 month ago

LGTM

hokorobi commented 1 month ago

Thank you for your comment. I will update the documentation.

hokorobi commented 1 month ago

I noticed that the option "ctrlp_match_current_file" exists. This option is not reflected if "g:ctrlp_match_func" was set. I didn't realize this as I use ctrlp-matchfuzzy.

Well, if I want to get the expected behaviour, it would be better to reflect ‘ctrlp_match_current_file’ only in CtrlPMRUFiles, rather than creating a new option.

hokorobi commented 1 month ago

I tried it like this. Please check.

mattn commented 1 month ago

Good catch. Thanks. I'll look into it in later.

mattn commented 1 month ago

Thank you

hokorobi commented 1 month ago

Thank you.