We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explanation of g:ctrlp_by_filename:
g:ctrlp_by_filename
*'g:ctrlp_by_filename'* Set this to 1 to set searching by filename (as opposed to full path) as the default: > let g:ctrlp_by_filename = 0
To match filename only, the regex should
[^/]$
/
Now I see the code is
if a:mmode == 'filename-only' let s:matchregex .= '[\^\\]*' endif
If I input a, the regex will be \v\c[\^\\]*a This is not correct. The correct regex should be \v\ca[^/]*$ In Windows it should be \v\ca[^\\]*$
a
\v\c[\^\\]*a
\v\ca[^/]*$
\v\ca[^\\]*$
If I input ab, the regex will be \v\c[\^\\]*a[^a]*b And it should be \v\ca[^a/]*b[^/]*$ to avoid / between a and b.
ab
\v\c[\^\\]*a[^a]*b
\v\ca[^a/]*b[^/]*$
b
The text was updated successfully, but these errors were encountered:
A PR is created at #38.
Sorry, something went wrong.
I can reproduce this issue
No branches or pull requests
Explanation of
g:ctrlp_by_filename
:To match filename only, the regex should
[^/]$
/
matches between input lettersNow I see the code is
If I input
a
, the regex will be\v\c[\^\\]*a
This is not correct.
The correct regex should be
\v\ca[^/]*$
In Windows it should be
\v\ca[^\\]*$
If I input
ab
, the regex will be\v\c[\^\\]*a[^a]*b
And it should be
\v\ca[^a/]*b[^/]*$
to avoid/
betweena
andb
.The text was updated successfully, but these errors were encountered: