Find command opens directories instead of files
Opened this issue · 1 comments
biozz commented
If there folders in g:notes_home
with the same name as some file then gf
on a link will open folder instead of a file.
<!-- 2021_01_01.md -->
Here is a link to [[2021_01]]
By pressing gf
vim will navigate to 2021_01
directory instead of a file 2021_01.md
.
│ ├── 2021
│ │ ├── 2021_01.md
│ │ └── 2021_01
│ │ ├── 2021_01_01.md
This is exactly how find
works:
:find 2021_01 " NOK
:find 2021_01.md " OK
But there should be a way to make .md
presedence higher than without extension.
biozz commented
I moved files from matching directories for now. I still don't have a reliable solution.