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.
External Program invoking EDITor in existing FAR instance
- HaRT
- Moderator
- Posts: 10863
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
External Program invoking EDITor in existing FAR instance
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.
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
External Program invoking EDITor in existing FAR instance
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!
- HaRT
- Moderator
- Posts: 10863
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
External Program invoking EDITor in existing FAR instance
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
- John Doe
- Бюрократ
- Posts: 13855
- Joined: Wed 27 Apr, 2005 20:42
- Has thanked: 73 times
- Been thanked: 428 times
- Contact:
External Program invoking EDITor in existing FAR instance
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.
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
Reason: Added plugin name as a link text; made the link point to an English-language page