Re: file input/output hook ?

Offer Kaye <[email protected]> Thu, 24 Feb 2011 14:11:36 +0200
Newsgroups gmane.editors.nedit.user
Message-ID <[email protected]>
On Thu, Feb 24, 2011 at 12:30 PM, Helmut Jarausch wrote:
>
> Hi,
>
> does anybody know if there hooks in NEdit which are run whenever NEdit
> opens or closes a file?

There's 'nedit (or nc) -do <command> <filename>'. According to the nedit docs:

-do command
Execute an NEdit macro or action on the file following the -do
argument on the command line. -do is particularly useful from the nc
program, where nc -do can remotely execute commands in an NEdit
-server session.

I'm not aware of any close file hook but you can certainly create a
macro that does whatever transformation you want and closes the file.

Regards,
Offer Kaye
-- 
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss