Topic: Tip: File modification date visible after opening a file (1 of 3), Read 18 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Thursday, June 09, 2005 03:48 PM


When opening a file in VEDIT I'm often interested in knowing the date
of the last modification of that file.

I could use the detailed view in the File-Open-Dialog or can have a
look in the Explorer's file list but I find it more convenient if
VEDIT displays it by itself.


So I added the following two lines to my STARTUP.VDM to make use of
text register 110 (the File open event macro):

Config(F_E_F_MACRO, "Enable file open/close event macros", 1, ALL)
Reg_Set(110, 'If(Is_Open_Write) { File_Stamp_String(120)
Statline_Message("Last mod.: |@(120)") }')

This way every time I open a file its modification date/time is
displayed in the status line; until the next keystroke.


Ted:
A suggestion: Perhaps that info can be added to the standard dialog
box {Help, Status display} too?


Christian

 


Topic: Re: Tip: File modification date visible after opening a file (2 of 3), Read 17 times
Conf: VEDIT Macro Library
From: Ted Green
Date: Friday, June 10, 2005 11:45 AM

At 03:49 PM 6/9/2005, you wrote:
>This way every time I open a file its modification date/time is
>displayed in the status line; until the next keystroke.
>
>
>Ted:
>A suggestion: Perhaps that info can be added to the standard dialog
>box {Help, Status display} too?

Christian:

Cool!
I will look into displaying it on the status line for one keystroke, as a built-in function. And add it to {HELP,Status display}.

Ted.

 


Topic: Re: Tip: File modification date visible after opening a file (3 of 3), Read 8 times
Conf: VEDIT Macro Library
From: Ted Green
Date: Thursday, March 23, 2006 09:38 PM

At 02:49 PM 6/9/2005, you wrote:
>When opening a file in VEDIT I'm often interested in knowing the date
>of the last modification of that file.
>So I added the following two lines to my STARTUP.VDM to make use of
>text register 110 (the File open event macro):
>
>Config(F_E_F_MACRO, "Enable file open/close event macros", 1, ALL)
>Reg_Set(110, 'If(Is_Open_Write) { File_Stamp_String(120)
> Statline_Message("Last mod.: |@(120)") }')
>
>This way every time I open a file its modification date/time is
>displayed in the status line; until the next keystroke.

I just added this code as an option in the Ustartup.vdm file.

>A suggestion: Perhaps that info can be added to the standard dialog
>box {Help, Status display} too?

I will keep this in the Suggestion box.

Ted.