From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: capture with iceweasel/firefox -- nothing works Date: Sat, 3 Sep 2016 20:23:24 -0700 Message-ID: References: <8760tphain.fsf@fastmail.fm> <87twh9rnub.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgO1p-00008w-30 for emacs-orgmode@gnu.org; Sat, 03 Sep 2016 23:23:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgO1m-0005zk-Cm for emacs-orgmode@gnu.org; Sat, 03 Sep 2016 23:23:28 -0400 Received: from mail-ua0-x233.google.com ([2607:f8b0:400c:c08::233]:35654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgO1m-0005zF-6Z for emacs-orgmode@gnu.org; Sat, 03 Sep 2016 23:23:26 -0400 Received: by mail-ua0-x233.google.com with SMTP id i32so208294641uai.2 for ; Sat, 03 Sep 2016 20:23:25 -0700 (PDT) In-Reply-To: <87twh9rnub.fsf@fastmail.fm> 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" To: Matt Lundin Cc: emacs-orgmode@gnu.org i tried your instructions. thank you very much for spelling it out so explicitly for me. unfortunately, they don't work. i am using debian jessie firefox. i put the desktop file as you stated, and added the bookmark as you stated. then i tested it on the gmail tab with nothing selected. it went to a new location in firefox (i expected it to do nothing in firefox). this new location is like this in the url bar: javascript:"org-protocol://capture?url=https%3A%2F%2Fmail.google.com%2Fmail%2Fu%2F0%2Fh%2Fhtsxxrphy06a%2F%3F%26&title=Gmail - Inbox&body=" and the tab contents has a grey background and like this text: "org-protocol://capture?url=https://mail.google.com/mail/u/0/h/htsxxrphy06a/?&&title=Gmail - Inbox&body= if i hit the back button in firefox i get gmail again. as for emacs, it has a new buffer that is visiting like this file: /home/samuel/org-protocol:/capture?url=https%3A%2F%2Fmail.google.com%2Fmail%2Fu%2F0%2Fh%2Fhtsxxrphy06a%2F%3F%26&title=Gmail%20-%20Inbox&body= the value of org-protocol-default-template-key is nil. so i tried changing it to "p" and "L" which have templates. then i tried it on another site with a selection. it popped up emacs (i do not want this and my templates are set to immediately finish) and said: Use M-x make-directory RET RET to create the directory and its parents When done with a buffer, type C-x # it also created a blank buffer visiting a file. then i tried it on a few other sites, and got similar results, but sometimes with slight differences. so i am still lost. interstitial: On 6/4/16, Matt Lundin wrote: >> will try. this is supposed to imitate clicking on the unicorn or >> calling the bookmark? > > This is the content of the bookmark. Pasting it into the location bar is > just a quick way to test if everything is working prior to saving it > permanently as a bookmark. But it might be easier to go straight to the > bookmark step (see below). ok > Do you mean clicking on the unicorn icon installed with this extension? > > https://addons.mozilla.org/en-US/firefox/addon/org-mode-capture/ > > If you have installed that extension, I think everything should just > work with minimal configuration. The extension is distinct from the i have installed that extension. it fails most of the time, just like the 2 bookmarks i tried fail most of the time. when it stops working it really stops working. when it is working, it's maybe 50%. but sometimes it has runs of working. > universal. Once you get it set up the protocol system-wide, the bookmark > should work in any browser. ah. > To save it as a bookmark in firefox, right click on the bookmark bar, > select "New Bookmark," and paste it into the Location field. > >> do i try with selecting and without selecting? > > The bookmark should work with and without selections. > >> which capture key does it call? > > This can be controlled with the emacs variable > `org-protocol-default-template-key'. You can also specify a template > shortcut by changing the bookmark. For instance, to call a template > designated by "x", you could use the following: > > javascript:location.href='org-protocol://capture?template=x&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&body='+encodeURIComponent(window.getSelection()) > > Matt >