remote-vscode icon indicating copy to clipboard operation
remote-vscode copied to clipboard

Specify host:filename or filename@host in editor tab

Open lmcapser opened this issue 7 years ago • 3 comments

I love the ability to edit remote files - I've done this for years in emacs w/ the built-in ssh support. I also tend to frequently have multiple files open on multiple hosts. Would it be difficult to change the tab title to include the hostname the source file resides upon? Perhaps a tooltip that shows the full hostname and path would be great as well.

Thanks, Lance Capser

P.S. Although this should probably be a separate request, is there any work being done to provide a way to open remote files from the vscode window itself (i.e. open file on remote host . . .), rather than logging into the remote host and running 'rcode '?

lmcapser avatar Feb 16 '18 18:02 lmcapser

Regarding your first request, today the file name is set by VSCode. I can't say if it would be easy to do what you are saying. But maybe we can add something in the status bar. Not ideal, but could be easy to implement.

Regarding opening a file from the vscode, as it is now, it is not possible with the rmate code you added to the server. It would require a complete new solution.

rafaelmaiolla avatar Feb 16 '18 19:02 rafaelmaiolla

Thanks for the response. Even the status bar would be helpful.

Regarding the second question, that's about what I figured.

Thanks again, Lance

lmcapser avatar Feb 16 '18 21:02 lmcapser

I used python version of rmate, prolly works for others version, I specify host name this way. I used -m option to specify the name, and pass $HOSTNAME variable you can wrap rmate in a script, and use -m "$HOSTNAME@$1" where $1 is your file param

romanmar avatar Mar 21 '18 02:03 romanmar