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

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

Open
lmcapser opened this issue Feb 16, 2018 · 3 comments
Open

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

lmcapser opened this issue Feb 16, 2018 · 3 comments

Comments

@lmcapser
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link

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

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

3 participants