Topic: Projlog.vdm: Mynotes for projects (1 of 2), Read 9 times, 1 File Attachment
Conf: VEDIT Macro Library
From: Scott Lambert
Date: Tuesday, July 12, 2011 08:49 AM


Projlog.vdm provides a separate mynotes type file for each of your Vedit projects.

A project must be open for the macro to do anything.

Projlog.vdm is based on the mynotes.vdm macro that come with Vedit.

It works much like mynotes.vdm with two changes:

1. it does not save & restore file pos, etc. That feature is more complex to implement with multiple note files. (something for v2)

2. if log file is in current buffer, when macro is called, it saves the file and exits, no prompting as in mynotes.

The project notes are stored in user_home\projects with the project name as the file name and .log as the extension.

Is something like this useful? Worth further development? Comments?

Scott

 
PROJLOG.VDM (2KB)

 


Topic: Projlog.vdm: Mynotes for projects (2 of 2), Read 6 times
Conf: VEDIT Macro Library
From: Pauli Lindgren
Date: Thursday, July 14, 2011 07:08 AM

On 7/12/2011 8:49:26 AM, Scott Lambert wrote:
>
> It works much like mynotes.vdm
> with two changes:
>
> 1. it does not save & restore
> file pos, etc. That feature is
> more complex to implement with
> multiple note files.
> (something for v2)

You could perhaps save the .ini file at CURRENT_PROJ_DIR.

>
>2. if log file is in current
>buffer, when macro is called,
>it saves the file and exits,
>no prompting as in mynotes.

Mynotes.vdm does not prompt anything.
I think your change would just cause the window to be left open.

However, it does not even go to that branch of if.
When the macro is called while the .log file is open, it just opens another buffer. This is because you do not close the tmp buffer used for building the filename.

>
>Is something like this useful?
>Worth further development?
>Comments?

Yes, project specific notes file may be useful.
My mynotes.txt tends to be quite long already.

I first thought that maybe mynotes.vdm could be changed to save project specific file. However, it is useful to have a global notes file even when a project is open, so maybe it is better to have two separate macros.

--
Pauli