vim-markdown-preview icon indicating copy to clipboard operation
vim-markdown-preview copied to clipboard

Doesn't work with remote files

Open JeffFaer opened this issue 3 years ago • 2 comments

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 avatar Dec 22 '21 18:12 JeffFaer

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 :/

JeffFaer avatar Dec 22 '21 18:12 JeffFaer

Same issue.

BiliBraker avatar Sep 04 '23 00:09 BiliBraker