External Program invoking EDITor in existing FAR instance

You have encountered a problem using Far Manager? Here you can get help.
Post Reply
lynx
Posts: 2
Joined: Mon 09 Feb, 2015 12:26

External Program invoking EDITor in existing FAR instance

Post by lynx »

I would like external programs that invoke FAR's editor to attach to my running FAR session (if any). However, when invoking FAR from the command-line (using /e), it starts a separate session.

Did I miss how to do this in the manual? Suggestions appreciated.
User avatar
HaRT
Moderator
Posts: 10823
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

External Program invoking EDITor in existing FAR instance

Post by HaRT »

AFAIK, there's no such feature in Far.
It can be implemented as a Far plugin which listens to the Far start or Editor open event, detects if it is “far /e” and if so, sends the respective request to the plugin instance in an already running Far and then closes the would-be new Far instance.
Фар есть инструмент, а не нянька. © 2009 DrKnS
lynx
Posts: 2
Joined: Mon 09 Feb, 2015 12:26

External Program invoking EDITor in existing FAR instance

Post by lynx »

Thank you for your reply, and for confirming my suspicion. I don't know if I presently have the time to write such a plug-in, but I will investigate. Again, thank you!
User avatar
HaRT
Moderator
Posts: 10823
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

External Program invoking EDITor in existing FAR instance

Post by HaRT »

lynx wrote: if I presently have the time to write such a plug-in
If you do, I recommend that you consider writing the plugin in Lua as it doesn't require you to recompile the code after each trial-and-error change.
Фар есть инструмент, а не нянька. © 2009 DrKnS
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

External Program invoking EDITor in existing FAR instance

Post by John Doe »

I remember old plugin with rather similar functions: FAR Selector.
It lets to open folders and set cursor at given file in panels, using single FAR instance (more in Russian)

So you can make suggestion to the author of FARSelector here.
Last edited by John Doe on Thu 01 Jan, 1970 01:00, edited 0 times in total.
Reason: Added plugin name as a link text; made the link point to an English-language page
Post Reply

Return to “Support and Troubleshooting”