Open komar007 opened 5 months ago
This is a known issue. Oil does not handle files with leading whitespace very well. They will display properly, but the issue is that we use whitespace to separate the columns, so leading whitespace gets ignored when parsing the filename. There are maybe some things we could do to improve this, but it would take some effort.
Did you check the docs and existing issues?
Neovim version (nvim -v)
0.9.5
Operating system/version
Ubuntu 22.04
Describe the bug
When a directory contains a file named "x" and another file named " x" or "x " (added space before of after the name of the first file), oil.nvim fails with "Error parsing oil buffers". After saving the modified buffer, we can also see a diagnostic "Duplicate filename" next to one of the files, even though their names are not equal.
What is the severity of this bug?
tolerable (can work around it)
Steps To Reproduce
Then:
:w
Expected Behavior
Directory "y" should be created in
/tmp/temp
.Directory structure
x/
x/
Repro
Did you check the bug with a clean config?
nvim -u repro.lua
using the repro.lua file above.