distant.nvim icon indicating copy to clipboard operation
distant.nvim copied to clipboard

load file with command on remote to open in Neovim locally

Open vm-wylbur opened this issue 11 months ago • 2 comments

I wonder if there would be a way to give a command to the server to load a file from the remote machine to a buffer in neovim on the local machine. I imagine semantics something like this:

# this is a remote server 
pball@snowball🌐:~
❯ distant server nvim-open path/to/myfile 

And a buffer for path/to/myfile opens in the local Neovim. This would be in some sense the inverse of distant spawn. SublimeText has a version of this but it has the "hang while a synchronous copy happens"/sshfs issue. Following up #129.

vm-wylbur avatar Feb 28 '24 21:02 vm-wylbur