Closed mark-hahn closed 9 years ago
When editing remote files a RemoteEditEditor is used instead of the default TextEditor. This class has two variables which can be used to accomplish what you want: localFile and host.
The easiest way to save the info for the focused file would be to use these to variables to generate and store a string that could later be used to open said file. Look at open-files-view.coffee on line 59. You can open the generated URI using atom.workspace.open.
Hope this helps. Let me know if there's anything I can do to help.
Sounds great. I was very surprised to see that remote pages reload when atom reloads. Nice package.
On Tue, Jun 23, 2015 at 11:55 AM, Sverre Aleksandersen < notifications@github.com> wrote:
When editing remote files a RemoteEditEditor is used instead of the default TextEditor. This class has two variables which can be used to accomplish what you want: localFile and host.
The easiest way to save the info for the focused file would be to use these to variables to generate and store a string that could later be used to open said file. Look at open-files-view.coffee https://github.com/sveale/remote-edit/blob/03a079ba2ad9617873fffa452535f3d6c07f0c1d/lib/view/open-files-view.coffee#L59 on line 59. You can open the generated URI using atom.workspace.open.
Hope this helps. Let me know if there's anything I can do to help.
— Reply to this email directly or view it on GitHub https://github.com/sveale/remote-edit/issues/79#issuecomment-114607535.
I have a
command-toolbar
package that I use like favorites in a browser. It stores atom commands, links to files, and web pages. I'd like to extend the stored links to remote files using this package. How hard would it be to ...