Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using Atom.io with winscp

I am not able to configure winscp to work with ATOM.IO/

I tried to add external editor from the wincsp settings however when I clicked on the file to edit, an command line is opening and nothing happen.

external url : C:\Users\yjradeh\AppData\Local\atom\Update.exe !.!

any help on this ?

like image 363
yjradeh Avatar asked Mar 17 '15 15:03

yjradeh


People also ask

How do I add an external editor in WinSCP?

To edit file selected in panel go to File(s) > Edit. The command by default opens the file in an internal editor. You can make the command open the file in any external editor in preferences. From submenu File(s) > Edit (alternative) you can open the file in any of configured editors, or even ad hoc editor (Edit With).

How do I run WinSCP with Notepad ++?

If you want WinSCP to open a separate editor for every edited file, in Notepad++, go to Settings > Preferences > Multi-Instance > Always in multi-instance mode. To change the behavior for the instance opened from WinSCP only, use Notepad++ command-line switches -multiInst -nosession .

How do I change the default text editor in WinSCP?

To change this behavior you need to select the text editor of your choice and the click on the Up button till the desired text editor is at the top, top editor becomes the default editor. And click on OK. And click on Close. From now on when ever you open a file while using WinSCP the new text editor will be used.


1 Answers

I guess the question is off topic, but since it's here and I was JUST trying to figure this out, I thought I would leave an answer just in case.

You need to find the location of the atom.io executable, atom.exe. The update is just run to check for updates and then starts the executable with some other commands. I don't think you can use the Update.exe to start the editor at a specific file, at least not through winscp.

For me, I found that the atom.exe was installed to

C:\Users\mynamehere\AppData\Local\atom\app-0.187.0\atom.exe

So I just copied and pasted this into my winscp editor preferences and it seemed to work fine.

Sidenote: I'm also going to be trying out some of the sftp plugins for atom as they might be better than using winscp if they allow the use of authorization keys. There seem to be plenty of choices.

Update (3/22/16): I found that atom installs itself in the PATH. So now I just add atom as an external editor and use the command

atom !.!

like image 95
Travis Avatar answered Sep 28 '22 05:09

Travis