From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: "Capture"-like browser plugin? Date: Thu, 17 Sep 2015 13:58:55 -0700 Message-ID: References: <6sw6c7y4i7nejo.fsf@dhcp-10-92-133-17.hmco.com> <86zj2nzzzz3p8k@me.localhost.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcgGg-0003An-31 for emacs-orgmode@gnu.org; Thu, 17 Sep 2015 16:58:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcgGe-0006pY-Tz for emacs-orgmode@gnu.org; Thu, 17 Sep 2015 16:58:58 -0400 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:33186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcgGe-0006pH-Np for emacs-orgmode@gnu.org; Thu, 17 Sep 2015 16:58:56 -0400 Received: by wiclk2 with SMTP id lk2so40020569wic.0 for ; Thu, 17 Sep 2015 13:58:55 -0700 (PDT) In-Reply-To: <86zj2nzzzz3p8k@me.localhost.invalid> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daniele Pizzolli Cc: emacs-orgmode@gnu.org On 7/23/15, Daniele Pizzolli wrote: > https://addons.mozilla.org/it/firefox/addon/org-mode-capture/ > > The latest version convert html links to org-links (disclaimer: it is my > little contribution). this extension is wonderful. all you have to do is install it and then do what you want with it in elisp. i use it with iceweasel 40.0.3 (rebranded firefox). however, it (or org-protocol) is very flaky. it works half of the time, but sometimes it will do nothing and say "No server buffers remain to edit" and sometimes it will capture the link but not the selection. it will also sometimes capture something else you copied, which does not appear on the page whose link gets capture. GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2015-01-11 on maritornes, modified by Debian org 8.3 (progn (add-to-list 'org-capture-templates `("L" "Protocol Link" entry (file+headline ,(concat org-directory "/executive--a.org") "xyzzy-remember") ;; \nkill %c\nselect %x ;; %:initial is like %i in org-protocol "* [[%:link][%:description]]\n%(alpha-org-protocol-region \"%i\")" :prepend t :immediate-finish t ;; ensure it worked ;; just remember to go to prev buffer for where you were :jump-to-captured t)) nil) (defun alpha-org-protocol-region (string) (if (= 0 (length string)) "" (concat string " --"))) thanks. samuel