« Return to Thread: WIP Note Directory Watcher Patch - v2

Re: WIP Note Directory Watcher Patch - v2

by Sandy Armstrong :: Rate this Message:

Reply to Author | View in Thread

Only time for a quick look right now, but I still think you should use
Note.LoadForeignNoteXml instead of setting note.XmlContent and
note.Title (it picks up a bunch of other metadata, whereas XmlContent
just picks up stuff in the content area).

Going to play with this soon, want to get it in git ASAP.

BTW, does anybody else feel weird writing "git" all lower-case, after
years of "CVS" and "SVN"?  :-P

On Tue, Apr 28, 2009 at 12:40 PM, Michael Fletcher
<m.fletcher@...> wrote:

> The NoteDirectoryWatcher Addin is nearly ready.  Its useful and there
> is little chance of you losing your data.  Please check out the
> updated patch and preamble.
>
>
>
> If you use an external process to modify you ".note" files (ie
> DropBox) there is a significant risk that you will lose you note data.
>  Tomboy will overwrite the note on disk with its representation in
> memory.
>
> NoteDirectoryWatcher will watch your ~/.tomboy directory for changes
> and update Tomboy's in-memory copy of the note if the note changes.
> This reduces the change of losing notes.
>
> Unfortunately there is still a small chance you will lose data.  If you
> a) Update a note externally.
> b) Change the note in Tomboy more than 4 seconds but less than five
> seconds after A.  I'll work on this later.
>
> There is still one corner case that needs to be handled
> (FileSystemWatcher.Error) but its highly unlikely you will encounter
> it.  Running Tomboy under windows with your notes on a SMB share is a
> good way to try :).
>
> _______________________________________________
> Tomboy-list mailing list
> Tomboy-list@...
> http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com
>
>
_______________________________________________
Tomboy-list mailing list
Tomboy-list@...
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com

 « Return to Thread: WIP Note Directory Watcher Patch - v2