[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Links to tomboy notes in org files

From: Nick Dokos
Subject: Re: [Orgmode] Links to tomboy notes in org files
Date: Sun, 10 May 2009 13:01:54 -0400

Carsten Dominik <address@hidden> wrote:

> On May 10, 2009, at 2:33 PM, address@hidden wrote:
> >>> What I would like to do is create a link to a tomboy note. I'm
> >>> sure it would be possible somehow, but I have no idea how
> >>> though. Something like:
> >>>
> >>> * Check out Blog post draft [[tomboy:"my draft"]]
> >>>
> >>> And C-u C-o on it would open this tomboy note in tomboy.
> >>>
> >
> > $ tomboy --open-note 'MyNote'
> Something like the following (untested...)
> (require 'org)
> (org-add-link-type "tomboy" 'org-tomboy-open)
> (defun org-tomboy-open (note)
>    (let ((outbuf (get-buffer-create "*Org Shell Output*"))
>       (cmd (concat "tomboy --open-note " (shell-quote-argument note) " &")))
>      (with-current-buffer outbuf (erase-buffer))
>      (shell-command cmd outbuf outbuf)))

I ran a very simple test and this worked very nicely. The only caution for
the original poster is that if the title of the note contains spaces,
the link has to look like this:


not like this:

> >>> ... [[tomboy:"my draft"]]

C-c C-l will encode spaces properly, but don't enter quotes (unless
your tomboy note really includes quotes in the title).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]