On Thu, 10 Jan 2013 08:41:16 -0800 (PST)
"Edward K. Ream" <
edre...@gmail.com> wrote:
> On Wednesday, January 9, 2013 4:56:37 PM UTC-6, Edward K. Ream wrote:
>
> I think it would be useful for Leo to write, at the start of each external
> file, the name of the .leo file that wrote it. This would be the short
> file name, x.leo, not the full path. This is, imo, enough of a clue :-)
> Sometimes that clue comes in handy: there are a surprisingly large number
> of .leo files on my drives, and I often don't remember which .leo file is
> responsible for creating the external file. This clue is particularly
> valuable when I use Leo to study somebody else's code: there is then no
> obvious way to remember the name of the .leo file that created the Leo
> sentinels.
>
> Your comments please.
So you're talking about adding metadata to the info. in the sentineled
file formats.
Downsides:
- more visual cruft to ignore in other editors
- backwards compatibility issues for earlier versions of Leo
Upsides:
- helpful when you're looking at a file outside of Leo, maybe
I don't think the visual cruft issue is a big deal, a) there's already
a lot of annoying visual cruft in other editors when looking at
sentineled files, so a bit more won't matter, and b) I don't use the
sentineled file formats anyway :-)
The backwards compatibility issue seems like a bigger deal, is someone
going to find they can't ready a @file node in 2013-01-03 Leo because
it was written in 2013-01-20 Leo? Is the upside enough to justify
this? Or can the current format include the info. with out breaking
read in older Leos?
Iff you do add it, I'd argue for adding a) the time of write as well,
and b) making sure the mechanism is extensible so other metadata can be
written in the future without backwards compatibility issues, if they
even exist now that is.
Cheers -Terry