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

Doesn't work with remote files #106

Open
JeffFaer opened this issue Dec 22, 2021 · 2 comments
Open

Doesn't work with remote files #106

JeffFaer opened this issue Dec 22, 2021 · 2 comments

Comments

@JeffFaer
Copy link

Observed behavior:

$ vim scp://me@computer//path/to/README.md
<ctrl>p
Please install the necessary requirements: https://github.com/JamshedVesuna/vim-markdown-preview#requirements
$ scp me@computer:path/to/README.md .
$ vim README.md
<ctrl>p
<works without problem>

Expected behavior:

I expected vim-markdown-preview to work with remote files. I've installed the necessary requirements, so I'm not entirely sure what's going wrong with the plugin

@JeffFaer
Copy link
Author

Ah, I'm guessing the problem is something around

https://github.com/JamshedVesuna/vim-markdown-preview/blob/master/plugin/vim-markdown-preview.vim#L62,L65

:echo expand('%:p')
scp://me@computer//path/to/README.md

I'm guessing grip doesn't know how to read scp URIs. There's a b:netrw_tmpfile variable that seems like it should be pointing to the tmp file that's being used locally, but that file doesn't actually seem to exist on my filesystem :/

@BiliBraker
Copy link

Same issue.

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

No branches or pull requests

2 participants