I am fairly new to Vim. I keep my notes in
.md files and would like to access them with CtrlP from several different directories. I would like to set a specific filter on them, because now loading all the files and changing the search patter quickly slows down vim a lot.
I understand that there are
ctrlp_custom_ignore for ignoring specific files formats. However, based on this issue, for filtering for particular patterns, I might need to use
Currently, I have the default setting:
let g:ctrlp_user_command = 'rg %s --files --hidden --color=never --glob ""'
I tried to adjust it based on the issue but the examples there use
find instead of
rg and I am confused with the vim regex (I am familiar with regex mainly in python and somehow in js).
Many thanks in advance.