Discussion:
file input/output hook ?
Helmut Jarausch
2011-02-24 10:30:59 UTC
Permalink
Hi,

does anybody know if there hooks in NEdit which are run whenever NEdit
opens or closes a file?

I'd like to use such hook to invoke recode transforming from/to utf-8
to/from latin1.

Thanks for a hint,
Helmut.
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Offer Kaye
2011-02-24 12:11:36 UTC
Permalink
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 - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Jerry L. Kazdan
2011-02-25 21:28:27 UTC
Permalink
Is there a way to configure NEdit to save a copy of a document every 10 minutes?
Or after 200 characters have been changed?

-- Jerry
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Ganoe, George G. (LARC-D319)
2011-02-25 22:09:48 UTC
Permalink
If you have Incremental Backups checked in the Preferences drop down, then
nedit will save a backup copy of your document after every 8 editing operations
or 80 characters changed. I don't know if there is any way to change that
frequency.

George

________________________________________
From: discuss-bounces-***@public.gmane.org [discuss-bounces-***@public.gmane.org] On Behalf Of Jerry L. Kazdan [kazdan-vZPEP/***@public.gmane.org]
Sent: Friday, February 25, 2011 4:28 PM
To: General NEdit discussion list
Subject: auto save time every 10 minutes?

Is there a way to configure NEdit to save a copy of a document every 10 minutes?
Or after 200 characters have been changed?

-- Jerry
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Tony Balinski
2011-02-27 10:06:33 UTC
Permalink
Quoting "Ganoe, George G. (LARC-D319)" <george.ganoe-***@public.gmane.org>:

> If you have Incremental Backups checked in the Preferences drop down, then
> nedit will save a backup copy of your document after every 8 editing
> operations
> or 80 characters changed. I don't know if there is any way to change that
> frequency.
>
The incremental save files have names starting with ~; "Untitled" ones get
saved to your home directory (eg "~Untitled").

Tony
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Jerry L. Kazdan
2011-02-27 20:24:28 UTC
Permalink
Thanks. These suggestions help. -- Jerry

On 02/27/2011 05:06 AM, Tony Balinski wrote:
> Quoting "Ganoe, George G. (LARC-D319)"<george.ganoe-***@public.gmane.org>:
>
>> If you have Incremental Backups checked in the Preferences drop down, then
>> nedit will save a backup copy of your document after every 8 editing
>> operations
>> or 80 characters changed. I don't know if there is any way to change that
>> frequency.
>>
> The incremental save files have names starting with ~; "Untitled" ones get
> saved to your home directory (eg "~Untitled").
>
> Tony
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Continue reading on narkive:
Loading...