-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
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
bug: inconsistent path separator conventions required on Windows #336
Comments
I've made some changes to treat You may be less pleased about one of the changes though. It so happens that being able to move a file into a directory by renaming it from |
Did you check the docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.0-dev-2682+g7d0a25fa8
Operating system/version
Windows 11 26085.1
Describe the bug
On Windows, Oil seems to require mixing path separator conventions.
I.e. requires the use of both
/
and\
simultaneously.What is the severity of this bug?
minor (annoyance)
Steps To Reproduce
(Code blocks in this section will be the Oil buffer content.)
Screencast of this issue: https://www.youtube.com/watch?v=rziTssra0gw
When creating a directory, if the NT path delimiter
\
is usedthe 'create' action calls down to
uv.fs_open
which returns anENOENT
error.Using the POSIX delimiter
/
works as expected.However, you have to mix these conventions for sequences like 'create;move'
Consider starting with a directory like:
to move 'file.txt' into 'dir' we have to do this:
which applies without error.
Trying to do
results in a parsing error from Oil:
Filename cannot contain '/'
.Expected Behavior
I expect Oil to enforce 1 of either conventions, preferably the platform native convention.
Directory structure
No response
Repro
Did you check the bug with a clean config?
nvim -u repro.lua
using the repro.lua file above.The text was updated successfully, but these errors were encountered: