Closed ktjjang closed 1 year ago
That's expected as +name-only
is only intended to work with fuzzy matching which is the default searching behavior, the exact and inverse matching still operates against the full line content.
To include the files whose name match devfreq
but not include the directory devfreq
, you can use devfreq !devfreq/
.
Instructions: Replace the template text and remove irrelevant text (including this line) Warning: if you don't fill this issue template and provide the reproducible steps the issue could be closed directly.
Environment (please complete the following information): OS: NAME="Ubuntu" VERSION="20.04.6 LTS (Focal Fossa)" (Neo)Vim version: vim version 8.2.5172 vim-clap version: latest commit https://github.com/liuchengxu/vim-clap/commit/4aea08196fb9d3dcf365192f4bf7da7d3813a23d (HEAD -> master, origin/master, origin/HEAD) Upgrade clap to 4.2) Have you reproduced with a minimal vimrc: yes, it's still reproduced Have you updated to the latest plugin version: yes, it's still reproduced Have you upgraded to/compiled the latest Rust binary: yes, it's still reproduced
Describe the bug There are directories and files that contain the word "devfreq" as shown below.
When I open the Clap-files with +name-only option and type word devfreq. Clap-files show me the correct results like below. It show only files containing the word devfreq.
If I type word 'devfreq to get exact-match results. accroding to following fzf search syntax I expected only files that has the exact name of devfreq to be shown.
But, when I type 'devfreq, the directories are also shown. That is, both file and directories are shown like below
Clap debug