From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konstantin Kliakhandler Subject: Re: New Chrome Extension Date: Tue, 7 Jul 2015 19:57:37 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d041825bc946628051a4bec89 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCWC2-0001PO-TX for emacs-orgmode@gnu.org; Tue, 07 Jul 2015 12:58:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCWBy-0004H5-Ph for emacs-orgmode@gnu.org; Tue, 07 Jul 2015 12:58:02 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:36896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCWBy-0004Gp-GV for emacs-orgmode@gnu.org; Tue, 07 Jul 2015 12:57:58 -0400 Received: by wiclp1 with SMTP id lp1so56976590wic.0 for ; Tue, 07 Jul 2015 09:57:57 -0700 (PDT) In-Reply-To: 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: Ken Mankoff Cc: emacs-orgmode@gnu.org --f46d041825bc946628051a4bec89 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Ken, The first user, hurrah! You were right to add the capture templates - I will update the docs to be more clear about that. I think the first thing to add to the extension now that it is in the open is to add configuration for the targets... Here are the templates that I use (I need to replace the captured on: with a property at some point, but this is beside the point): ("L" "Protocol Link" entry (file+headline ,(concat org-directory "notes.or= g") "Inbox") "* %? [[%:link][%:description]] \nCaptured On: %U") ("p" "Protocol" entry (file+headline ,(concat org-directory "notes.org") "Inbox") "* %^{Title}\nSource: %u, %c\n #+BEGIN_QUOTE\n%i\n#+END_QUOTE\n\n\n%?") I can't recall at the moment why I use the nicer format replacements for the link and the shorter for the full quote, and it might not matter. Could you try to make your "p" template similar to mine and see if it works? Alternatively, can you paste the templates you used? Cheers, Kosta --=20 Konstantin Kliakhandler http://slumpy.org )=C2=B0) )=C2=B0( (=C2=B0( On 7 July 2015 at 19:24, Ken Mankoff wrote: > > On 2015-07-07 at 12:16, Ken Mankoff wrote: > > Hi Konstantin, > > > > On 2015-07-07 at 11:44, Konstantin Kliakhandler > wrote: > >> I wrote up a small chrome extension for org-protocol. Comments, > >> improvements and positive criticism are all welcome. > > > > Thanks for making this. I just set up org-protocol and pass the > > "install test" on that page. Now when I click on your icon/extension > > Emacs comes to the foreground and I see the following error in the > > modeline: > > > >> No capture template referred to by "L" keys > > > > And in *Messages* I see: > > > >> Greedy org-protocol handler. Killing client. > >> No server editing buffers exist > >> No capture template referred to by "L" keys > > If I add a capture template with hotkey "L" I get the same message but fo= r > "p". If I add a capture template with the hotkey "p" then it appears to > mostly work, but I don't get selected text. I do get a link to the webpag= e > as the capture item body. > > -k. > --f46d041825bc946628051a4bec89 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello Ken,

The first user, hurrah!

You were right to add the capture templates - I will u= pdate the docs to be more clear about that. I think the first thing to add = to the extension now that it is in the open is to add configuration for the= targets...

Here are the templates that I use (I n= eed to replace the captured on: with a property at some point, but this is = beside the point):

=C2=A0("L" "= ;Protocol Link" entry (file+headline ,(concat org-directory "notes.org") "Inbox") "* %?= [[%:link][%:description]] \nCaptured On: %U")
("p" "Protocol" entry (file+headline ,(con= cat org-directory "notes.org") &= quot;Inbox")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&q= uot;* %^{Title}\nSource: %u, %c\n #+BEGIN_QUOTE\n%i\n#+END_QUOTE\n\n\n%?&qu= ot;)

I can't recall at the moment why I = use the nicer format replacements for the link and the shorter for the full= quote, and it might not matter. Could you try to make your "p" t= emplate similar to mine and see if it works? Alternatively, can you paste t= he templates you used?

Cheers,
Kosta

--=C2=A0
Konstantin Kliakhandler
=C2= =A0 =C2=A0 http://slumpy.or= g
=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 )=C2=B0) )=C2=B0( (=C2=B0(=

On 7 July 2015 at 19:24, Ken Mankoff <manko= ff@gmail.com> wrote:

On 2015-07-07 at 12:16, Ken Mankoff <mankoff@gmail.com> wrote:
> Hi Konstantin,
>
> On 2015-07-07 at 11:44, Konstantin Kliakhandler <kosta@slumpy.org> wrote:
>> I wrote up a small chrome extension for org-protocol. Comments, >> improvements and positive criticism are all welcome.
>
> Thanks for making this. I just set up org-protocol and pass the
> "install test" on that page. Now when I click on your icon/e= xtension
> Emacs comes to the foreground and I see the following error in the
> modeline:
>
>> No capture template referred to by "L" keys
>
> And in *Messages* I see:
>
>> Greedy org-protocol handler.=C2=A0 Killing client.
>> No server editing buffers exist
>> No capture template referred to by "L" keys

If I add a capture template with hotkey "L" I get the= same message but for "p". If I add a capture template with the h= otkey "p" then it appears to mostly work, but I don't get sel= ected text. I do get a link to the webpage as the capture item body.

=C2=A0 -k.

--f46d041825bc946628051a4bec89--