Closed YaQia closed 5 months ago
For anyone who want to use sshfs with oil.nvim: use sshfs username@computer:/remote/path /local/path -o idmap=user
, which will map the ssh user into current host user. After setting this option, we can use it flawlessly.
Did you check existing requests?
Describe the feature
Please add better permission check for sshfs to let
oil.nvim
to be modifiable in the sshfs dir.Provide background
I want to use sshfs to smoothly edit files with lsp support in my host computer, so I tried
remote-sshfs.nvim
, which basiclly adds nvim frontend ofsshfs
command line. It works great, butoil.nvim
can not edit files in the sshfs dir.What is the significance of this feature?
nice to have
Additional details
If I use
sshfs <server> <dest-dir> -o umask=755
, oil.nvim will work. But once I saved the edited file, the file permission changes into----w--w-
, which is the opposite of 755. I can't understand what is going on.BTW,
cd
,touch
and other file modification commands can be normally executed without permission issue, even when I am not using-o umask=755
.