Closed slavamak closed 1 month ago
This is intentional and mirrors the format that netrw uses. Instead of scp://[<username>@]<hostname>[:<port>]/<path>
we use oil-ssh://[<username>@]<hostname>[:<port>]/<path>
. The key being that the /
after the hostname/port is necessary so that we know when it has ended and the path is beginning. If the path on the remote machine is an absolute path, then it will start with a /
. This is why the full url will have two slashes there.
Got you, thanks for the explanation!
Did you check the docs and existing issues?
Neovim version (nvim -v)
0.10.0
Operating system/version
MacOS 14.4.1
Describe the bug
Hi there! Not sure if this is a problem but I noticed that there is an extra slash in the path. This slash is added when a connection to ssh is established. It's not a bug on my end but as a perfectionist I find it a bit annoying. Thanks :)
What is the severity of this bug?
minor (annoyance)
Steps To Reproduce
:e oil-ssh://user@host/
Then we get connection to path like
oil-ssh://user@host//root
Expected Behavior
The path must not contain an extra slash, for example
oil-ssh://user@host/root
oroil-ssh://user@host:/root
, I guessDirectory structure
No response
Repro
Did you check the bug with a clean config?
nvim -u repro.lua
using the repro.lua file above.