Open mxndrwgrdnr opened 3 years ago
You don't have to close the file, just resume the ssh connection and run rsub
command will bring the connection back.
Thanks for the response. What happens if I have unsaved changes in my file when the session drops? If I resume the connection and run rsub
on the remote, won't it reload the remote copy and squash my local changes?
I may be wrong, but I guess the following will happen. The remote copy is saved to the same temp file and Sublime Text will prompt to you that the file has been modified and ask to see if you want to load the changes.
I have an .ssh config that looks like this:
Sometimes my connection to that aws machine fails, after which any changes I make to my open files in sublime no longer get pushed to remote. No error message in sublime, I can still "save" my files locally, but the changes don't get synced to the remote versions and as best I can tell there's no way to "refresh" the open files to re-establish that connection without closing each open file and re-opening it using the
rsub
command from the remote terminal.Any suggestions?