From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Links to tomboy notes in org files Date: Sun, 10 May 2009 13:01:54 -0400 Message-ID: <21519.1241974914@gamaville.dokosmarshall.org> References: <1e5bcefd0905081515j6d0c7f1fvd901b259c5b60e1d@mail.gmail.com> <20090510123307.GG16288@mindcrime> <5FA5CAD3-A890-47AB-B63F-91221FD1D622@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3CQG-0005F0-Cw for emacs-orgmode@gnu.org; Sun, 10 May 2009 13:02:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3CQF-0005EO-IC for emacs-orgmode@gnu.org; Sun, 10 May 2009 13:02:43 -0400 Received: from [199.232.76.173] (port=56066 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3CQF-0005E6-57 for emacs-orgmode@gnu.org; Sun, 10 May 2009 13:02:43 -0400 Received: from qmta01.westchester.pa.mail.comcast.net ([76.96.62.16]:42969) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M3CQE-000644-Ft for emacs-orgmode@gnu.org; Sun, 10 May 2009 13:02:42 -0400 In-Reply-To: Message from Carsten Dominik of "Sun, 10 May 2009 12:53:17 -0000." <5FA5CAD3-A890-47AB-B63F-91221FD1D622@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: "djcb@djcbsoftware.nl" , "emacs-orgmode@gnu.org" Carsten Dominik wrote: > > On May 10, 2009, at 2:33 PM, djcb.bulk@gmail.com 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: [[tomboy:my%20draft][draft]] 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). HTH, Nick