External Program invoking EDITor in existing FAR instance

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

External Program invoking EDITor in existing FAR instance

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

External Program invoking EDITor in existing FAR instance

Postby 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

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

External Program invoking EDITor in existing FAR instance

Postby HaRT » Mon 09 Feb, 2015 20:26

lynx wrote:Source of the post 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: 11042
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 9 times
Been thanked: 62 times

External Program invoking EDITor in existing FAR instance

Postby 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 HaRT on Tue 17 Feb, 2015 17:07, edited 1 time in total.
Reason: Added plugin name as a link text; made the link point to an English-language page


Return to “Support and Troubleshooting”

Who is online

Users browsing this forum: No registered users and 1 guest