Re: launching a single instance of nedit for each text file
[email protected] Fri, 20 Nov 2009 08:24:30 -0800
| Newsgroups | gmane.editors.nedit.user |
|---|---|
| Message-ID | <[email protected]> |
Bert Wesarg wrote: > On Fri, Nov 20, 2009 at 09:58, TK Soh <[email protected]> wrote: >> On Fri, Nov 20, 2009 at 7:27 AM, Bert Wesarg <bert.wesarg-gM/[email protected]> wrote: >>> On Fri, Nov 20, 2009 at 04:12, Yose Widjaja <[email protected]> wrote: >>>> Good day, >>>> >>>> I was wondering if it is possible to enforce the settings of only ever >>>> launching one nedit window for each text file? So, from the terminal, if I >>>> do "nedit moo.txt" twice, the second one will just bring the existing window >>>> to focus. >>>> >>>> Is there such thing? If not, I guess the only way is to make a script which >>>> manually goes through the windows to check if the file has been opened? Is >>>> this possible? >>> Try using only the NEdit client. Its officially called nc, but it is >>> maybe installed as an different name, like nedit-nc or something. Than >>> replace all your calls 'nedit ...' with 'nc ...'. >>> >>> You can read more in the help menu under 'Client/Server Mode'. >> This is an old discussion. A lot of folks not aware of 'nc' somehow. >> May we should rename the server binary (nedit) to something else, like >> nedit-server and rename nc to nedit. Of course they are probably work >> to be done to the source to support this. > There is also the idea to merge these too binaries. I think your > proposal would be a good interim step to reach this goal. > > Bert >> -- >> NEdit Discuss mailing list - [email protected] >> http://www.nedit.org/mailman/listinfo/discuss >> I hate to rain on your parade, but if I remember correctly each executable requires its own switches, and they are not compatible. I do have an idea though. Rename the current nedit executable to something else and replace it with a script. If first time run it could inquire which executable to run. After that it would read the configuration file and launch the correct executable. This would force first timers to know about the two executables and help them pick the correct one. It doesn't solve the single executable problem though. Only fixing the switches will do that. -- Wayne. -- NEdit Discuss mailing list - [email protected] http://www.nedit.org/mailman/listinfo/discuss