rafaelmaiolla / remote-vscode

A package that implements the Textmate's 'rmate' feature for Visual Studio Code.
MIT License
260 stars 33 forks source link

Specify host:filename or filename@host in editor tab #49

Open lmcapser opened 6 years ago

lmcapser commented 6 years ago

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 '?

rafaelmaiolla commented 6 years ago

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.

lmcapser commented 6 years ago

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

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

Thanks again, Lance

romanmar commented 6 years ago

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