[tomboy-list] Using TomBoy from the console
lauromoura at gmail.com
Fri Dec 15 08:37:38 PST 2006
On 12/15/06, Pedro Castro <noup.net at gmail.com> wrote:
> Boyd Timothy wrote:
> > That's an interesting idea. I'm not sure if anyone's tried that
> > before. If someone wanted to write something like this, that'd be
> > cool. I don't think it'd ever be used by your standard end-user
> > though.
> Yes, it's more like a power-user feature. I recon, though, that Tomboy
> has some command-line parameters that can create notes, open notes, etc.
> When i first saw this, i actually thought it was the solution to my needs.
> > If someone wanted to try writing something like this, they could
> > possibly manipulate the ~/.tomboy/*.notes directly (not recommended),
> > or add in additional DBus methods to RemoteControl.cs that a
> > command-line utility could access.
> Using DBus would require Tomboy to be running for notes to be edited, right?
> Note that i probably won't have the time to work on this. Still, it's
> good to clarify things if someone else wants to take care of it.
I tried something using Tomboy-HEAD (from anoncvs) and added a new
command line option ("--append-text [title/uri] [text]") but had some
problems with "tomboy already running", even without any tomboy
instance running. So I can't test it yet.
To append the text I added a method to NoteBuffer to insert the text
using "Gtk.TextBuffer.Insert(EndIter, text)". I'm not sure if this is
the best approach, as there are many event handlers involved, but 
tells that the "insert_text" is emitted.
Tonight I'll try again. Just finished a college exam. =)
Lauro ("orduz" on Freenode)
More information about the tomboy-list