From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Links to tomboy notes in org files Date: Sun, 10 May 2009 14:53:17 +0200 Message-ID: <5FA5CAD3-A890-47AB-B63F-91221FD1D622@gmail.com> References: <1e5bcefd0905081515j6d0c7f1fvd901b259c5b60e1d@mail.gmail.com> <20090510123307.GG16288@mindcrime> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M38X0-0002Q1-Nw for emacs-orgmode@gnu.org; Sun, 10 May 2009 08:53:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M38Wv-0002Ot-UR for emacs-orgmode@gnu.org; Sun, 10 May 2009 08:53:26 -0400 Received: from [199.232.76.173] (port=39222 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M38Wv-0002Om-QJ for emacs-orgmode@gnu.org; Sun, 10 May 2009 08:53:21 -0400 Received: from ey-out-1920.google.com ([74.125.78.146]:61984) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M38Wv-0004Tz-Bj for emacs-orgmode@gnu.org; Sun, 10 May 2009 08:53:21 -0400 Received: by ey-out-1920.google.com with SMTP id 13so585579eye.24 for ; Sun, 10 May 2009 05:53:20 -0700 (PDT) In-Reply-To: <20090510123307.GG16288@mindcrime> 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: djcb@djcbsoftware.nl Cc: emacs-orgmode@gnu.org On May 10, 2009, at 2:33 PM, djcb.bulk@gmail.com wrote: > Hi, > > On Sat, May 09, 2009 at 08:59:16AM +0200, Carsten Dominik wrote: > >>> I have a main gtd.org file and in its top I have a list of other org >>> files that I have, for example: >>> * Workout plan - [[workout.org]] >>> * Nutrition - [[nutrition.org]] >>> >>> 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. >>> >>> Any ideas on how this could be implemented? >> >> Is there a command line command that will fire up tomboy and >> display a >> specific note? The this could be easily done. > > $ 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))) HTH - Carsten