External editor

You have encountered a problem using Far Manager? Here you can get help.
Post Reply
mcan
Posts: 2
Joined: Tue 07 Oct, 2008 08:04

External editor

Post by mcan »

Hello, I can't find how to send a file to an external editor???

ie. I have assigned notepad++ as my external editor when pressing Alt-F4.
This just starts notepad, but of course I want it to open the file as well. I have tryed adding the dos standard %1 and c string input %s, but they dosn't work. How shall I do?

//Markus - Sweden
User avatar
HaRT
Moderator
Posts: 10823
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

Re: External editor

Post by HaRT »

mcan
:rtfm: Prior to asking, you should have read the Help section available by F1 from the Options|Editor dialog box, where you've specified the external editor.
Фар есть инструмент, а не нянька. © 2009 DrKnS
mcan
Posts: 2
Joined: Tue 07 Oct, 2008 08:04

Re: External editor

Post by mcan »

Woops I didn't even think there was any help... I'm impressed!
horatio2305
Posts: 2
Joined: Fri 01 Feb, 2013 13:40

Re: External editor

Post by horatio2305 »

What if I wanted to only associate certain files like opening .csv files with my external text editor by pressing alt-f4?
User avatar
HaRT
Moderator
Posts: 10823
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

Re: External editor

Post by HaRT »

horatio2305
You would have used the «File associations» feature.
Фар есть инструмент, а не нянька. © 2009 DrKnS
soso
Posts: 5
Joined: Thu 04 Apr, 2013 10:09

Re: External editor

Post by soso »

Hello,

I set external editor to Ultraedit, but after I open a file using external editor Far interface blocks and I can't do anything anymore until I close Ultraedit. Feels like Far opens the extenal Editor in some blocking mode?

P.S. I am on Win7, Far 3 + ConEmu.
User avatar
HaRT
Moderator
Posts: 10823
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

Re: External editor

Post by HaRT »

soso
Use “start "" path\to\UltraEdit.exe !&”
Фар есть инструмент, а не нянька. © 2009 DrKnS
soso
Posts: 5
Joined: Thu 04 Apr, 2013 10:09

Re: External editor

Post by soso »

HaRT wrote:soso
Use “start "" path\to\UltraEdit.exe !&”
Sorry dones't work. Here's the new command:
start "C:\Program Files\Notepad++\notepad++.exe !&"

The old one that worked but blocked was:
C:\Program Files\Notepad++\notepad++.exe "!.!"

Thanks
soso
Posts: 5
Joined: Thu 04 Apr, 2013 10:09

Re: External editor

Post by soso »

I finally succeeded.

Dunno why but if I enclose in "" the command path too it works:
@"C:\Program Files\Notepad++\notepad++.exe" "!.!"
Post Reply

Return to “Support and Troubleshooting”