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 » Mon 09 Feb, 2015 12:35

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: 8048
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 67 times
Been thanked: 100 times

External Program invoking EDITor in existing FAR instance

Post by HaRT » Mon 09 Feb, 2015 12:46

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 » Mon 09 Feb, 2015 19:55

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: 8048
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 67 times
Been thanked: 100 times

External Program invoking EDITor in existing FAR instance

Post by HaRT » Mon 09 Feb, 2015 20:26

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: 11132
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 12 times
Been thanked: 72 times

External Program invoking EDITor in existing FAR instance

Post by John Doe » Tue 17 Feb, 2015 16:17

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”