BTW, I think we should prevent shadow files from accidentally
overwriting valuable stuff:
- Store modification time of the file on shadow import
- When you "save", check if modification time has changed and ask the
user if they really want to overwrite the changes. Or, reuse to do it
altogether and require explicit save-at-shadow-nodes in those
occasions. That's considered "good form" in editors in general, and
since pressing ctrl+S in leo has even more significant implications we
should be absolutely certain everything happens safely.
--
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
Sure. Just add @ignore at to the top-level @shadow node. Works for
other kinds of @file nodes as well.
> BTW, I think we should prevent shadow files from accidentally
> overwriting valuable stuff:
>
> - Store modification time of the file on shadow import
> - When you "save", check if modification time has changed and ask the
> user if they really want to overwrite the changes. Or, reuse to do it
> altogether and require explicit save-at-shadow-nodes in those
> occasions. That's considered "good form" in editors in general, and
> since pressing ctrl+S in leo has even more significant implications we
> should be absolutely certain everything happens safely.
Interesting. I hadn't thought of this parallel, but it seems
reasonable to me. I'll consider it, as a user option, for Leo 4.5.2.
Edward