From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albin Stjerna Subject: Using org-protocol to (org-)capture files for read/review? Date: Thu, 24 Feb 2011 10:27:59 +0100 Message-ID: <87r5axsrxc.fsf@hecate.student.uu.se> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=46004 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsXUR-0006L2-NA for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 04:28:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsXUQ-0005sL-Lq for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 04:28:03 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:55806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsXUQ-0005sC-9i for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 04:28:02 -0500 Received: by bwz17 with SMTP id 17so1031856bwz.0 for ; Thu, 24 Feb 2011 01:28:00 -0800 (PST) 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: emacs org-mode mailing list Hello, notmuch-org! I'm using org-mode to structure most of my life, but I haven't been able to incorporate my list of PDFs (or other documents) to read/review in org-mode, so currently I'm just putting them in ~/read-review. However, I thought I'd use org-protocol and emacsclient to add links to these files to org-mode, but I'm unable to figure out how to do it. I'd like to map the full path to a file, and then have that file appended to a plain list in a given org file with the TODO tag set (something like =C2=BB* TODO [[file:/path/to/filename.pdf]]=C2=AB) given a run of =C2=BBema= csclient org-protocol:/capture:/r/path/to/filename.pdf/=C2=AB. I can then implement pushing to my read/review stack with a simple shell command that a) moves the new file to ~/read-review and b) adds a link to the file on my org-mode read/review stack using the above mentioned emacsclient command. =20 So far, I've tried adding the following to org-capture-templates: ("r" "read/review" entry (file "~/org/read-review.org") "* TODO read %c" :immediate-finish t) Obviously =C2=BB%c=C2=AB wrong here -- but what should I replace it with? Thanks in advance, Albin PS. Sorry if I've insufficiently R:d TFM, but I really did try.