Skip to content
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

Using dirvish with scp / remote #62

Open
krruzic opened this issue Oct 25, 2016 · 9 comments
Open

Using dirvish with scp / remote #62

krruzic opened this issue Oct 25, 2016 · 9 comments

Comments

@krruzic
Copy link

krruzic commented Oct 25, 2016

Maybe I'm just stupid (I'm pretty new to vim in general) but when running dirvish with a file open via scp, it doesn't work. Support for this would be nice

(in case you want the error):
dirvish: invalid directory: 'scp://[email protected]/current/path'

@hauleth
Copy link

hauleth commented Oct 25, 2016

In general support for scp comes from netrw. If I could suggest something then try sshfs instead of scp or some kind of filewatcher with rsync instead, should work better in general.

@justinmk
Copy link
Owner

justinmk commented Oct 25, 2016

As mentioned by @hauleth, FUSE/sshfs provides an abstraction at the filesystem layer (as opposed to some other "middleware"), so that any dumb local navigator (like drivish) works without adding special-case support for scp, FTP, webdav, ..., as netrw does.

It might be interesting to use a strategy pattern as dispatch.vim does, so that remote operations are exposed to dirvish in a normalized way. Authentication is the most annoying part of this.

@krruzic
Copy link
Author

krruzic commented Oct 25, 2016

Thanks, I'll check out those other methods. The reason I asked is netrw does it very smoothly.

@bounceme
Copy link
Contributor

bounceme commented Jul 12, 2017

w3m -dump file://$PWD works, using the generic protocol approach, so it would in theory work for any url supported by w3m. that introduces a dependency though, and many probable issues, and is just useless info for the most part

@bounceme
Copy link
Contributor

lynx -dump -nonumbers file://$PWD lynx actually works well, not adding formatting and html nonsense

@bounceme
Copy link
Contributor

bounceme commented Jul 12, 2017

i got dirvish to work using the file:// protocol with lynx, as opposed to glob(). the bad part is that there is a lot of code which makes isdirectory() isreadable() calls, which obviously fail with :Dirvish ftp://user:pass@host

@bounceme
Copy link
Contributor

#86 shows the barebones implementation. i've only tested on a local ftp server

@justinmk justinmk changed the title Using dirvish with scp Using dirvish with scp / remote Jul 15, 2017
@justinmk
Copy link
Owner

justinmk commented Oct 7, 2017

@bounceme
Copy link
Contributor

bounceme commented Nov 6, 2017

good progress with ^^. still depends on an awful hack though: https://github.com/bounceme/remote-viewer/blob/master/plugin/remotedir.vim#L78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants