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
|
|