6 ms·
There's nothing that prevents you from doing the first one, if for some reason you prefer working in the browser rather than in some Electron application. For
by simark1 9y ago
There's nothing that prevents you from doing the first one, if for some reason you prefer working in the browser rather than in some Electron application. For fully local scenarios, it is expected that it will be able to work like a standard editor: you just launch it and work, you don't have to be aware of this frontend/backend separation.
The use case I am interested in is the following: at my company, code has to stay on central servers/infrastructure, you shouldn't clone it on your laptop. The only choices to work are either a graphical editor through a remote X session or a terminal-based editor, both having important shortcomings. Having a complete IDE (electron or browser) that edits files remotely be really nice in that situation.
- tbirdz 9y agoHow about emacs in tramp mode? Or even mounting the remote file system with sshfs and using whatever editor you had installed locally?
- hexa00 9y agoTheia does not only provide remote file access you also have LSP (language server protocol) for code-completion / docs ala eldoc , company) etc.. Almost all of Theia's features are based in the backend. The emacs equivalent would be like having emacs in daemon mode and a tcp based emacsclient locally. (I wish that existed) Also the idea is to have something a bit more modern and appealing to the mass of javascript/web devs out there. Theia is still far from replacing emacs, but as an emacs user myself and a Theia dev I hope I can bring what I love about emacs to Theia :)
- fiddlerwoaroof 9y agoTheoretically, couldn't you use socat and ssh tunnels to proxy the emacs server to another machine?
- hexa00 9y agoSo emacsclient/emacs deamon work with a tty, basically emacsclient opens a tty and sends it to the emacs deamon and it uses it to send output/receive input, so you really need to be local there's no way that I know to forward a tty on the network. The local socket opened is used only for configuration between emacs and emacsclient see: https://github.com/emacs-mirror/emacs/blob/master/lib-src/emacsclient.c https://github.com/emacs-mirror/emacs/blob/master/lib-src/em...
- hexa00 9y agoJust found out http://www.dest-unreach.org/socat/doc/socat-ttyovertcp.txt http://www.dest-unreach.org/socat/doc/socat-ttyovertcp.txt So it seems possible with socat indeed, I'll have to give it a try :) One problem that I see however is that emacsclient also forwards signals to emacs when the window changes size for example, I don't think that will work with socat
- rapala 9y agoIt's off-topic, but I just have to ask. Why? Why would local copies be disallowed?
- deleted 9y ago[deleted]
- hexa00 9y agoTo prevent someone to copy it all on a laptop and sell it for example.
- TeMPOraL 9y agoThat's completely ridiculous (and, unfortunately, also completely plausible with companies) - see the so-called "analog hole" (or in this case even digital - if it hits the browser as textual content).
- hexa00 9y agoEverything is relative, making it a bit harder may be worth it to some people and also maybe more detectable. But it's always possible of course.
- simark1 9y agoThere is still a big difference in terms of attach surface between a complete repo cloned in /home/$USER and some transient partial information that is gone (in theory) once you close the application/browser, so I don't see why it's completely ridiculous.
- s73ver 9y agoI doubt the code is that valuable, but if you don't trust your employees to not do that (seriously, nearly every other company trusts their engineers at least that much), then why did you hire them in the first place?
- simark1 9y ago