From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kEvwM6imzWLSbQAAbAwnHQ (envelope-from ) for ; Tue, 12 Jul 2022 18:51:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4K/rM6imzWKkcQEA9RJhRA (envelope-from ) for ; Tue, 12 Jul 2022 18:51:52 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7C6B8117EA for ; Tue, 12 Jul 2022 18:51:52 +0200 (CEST) Received: from localhost ([::1]:51374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBJ71-0002qe-5Z for larch@yhetil.org; Tue, 12 Jul 2022 12:51:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBJ5h-0002Lc-0X for emacs-orgmode@gnu.org; Tue, 12 Jul 2022 12:50:29 -0400 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:41831) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBJ5f-0002GB-0n for emacs-orgmode@gnu.org; Tue, 12 Jul 2022 12:50:28 -0400 Received: by mail-lj1-x234.google.com with SMTP id p6so7751715ljc.8 for ; Tue, 12 Jul 2022 09:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=RuDrVWYqzoJhRKhpv/yKKU+rv9q5Mrl7yKD/yQWlCJY=; b=f0Uw6GHJcvsF8dp6kBakRNj/Sm3KEd5ZwJ0yeB0trh98HhggxHrF1LjX/efG8f3ejN iAmMTvuS+LWOh28ODjllqd0kB2kj9KdzrlgDNHMyU009HXkT7viRgJso63n9ZDHtTYpg +Jr2hc1+2mYRyoGgNiyde/U2Nk7zVWu+kOuPbIHumL3Rc5szcuZyAsfuqfOSqM5Ym8WS UtGoJJBSIE6fROXfCvjwDL9Uyh/8yF0QSaYgQedf/lCLt1WaohayT90iaYLqo8CCltYY QEJkrlL1XeOyUugJ4qH6EcaRjiGmvgzJUxV5+kklF0cg6WXlKll5z9PHE0mKLjs+HSll CdBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=RuDrVWYqzoJhRKhpv/yKKU+rv9q5Mrl7yKD/yQWlCJY=; b=l0bfWzIsdjNfPFFBDSkHkm10tG7IC1s75/KTHRBgNCcotB38DYxCEHGKFnoH+Gp7xG bkXX2HnL9uqRSRYckK0bH05p5Dudw+1Z4t17tueWeGnovhp0SWZRWhQY3K2I5sOxHMr4 AgwS9MD8HsFoINa5NC+kYPWwhQYcwqXXHQRCRBK/t/8JGnCAtn9ElbBCaMMvP7lfBpgD aGyob9FopInqybXGq9ERb9l+8D33yzUd+c8hgM/wR0DIPtDXaVioVnv7z63eMKnnAtli jlpsDAEcrvMkFfyxqDF9ax8XEjJ+fsdZgQMoAVnz89i/Q6975ckNjBzrQxQga1i6qxY9 1/YA== X-Gm-Message-State: AJIora8WIZ6P2ESPzHcQZ4IGpAvi0PdKN85OP1W4AgObPyyrp035TxpZ Sak9w1m5nnO4pEBsSRpQhJVEhsldNqnLkHJ4nipZ32st X-Google-Smtp-Source: AGRyM1tQPbToWKqQigqJaJ4x7eaZ6cX8FEq0nd56LNRX9CmZcmiNcVGuDEM0hZnryWZXxfqlDwo38WHZAfmRnDNWs98= X-Received: by 2002:a2e:bd0e:0:b0:253:c481:d1bd with SMTP id n14-20020a2ebd0e000000b00253c481d1bdmr13485162ljq.154.1657644624922; Tue, 12 Jul 2022 09:50:24 -0700 (PDT) MIME-Version: 1.0 References: <87pmihurhi.fsf@localhost> In-Reply-To: From: Henrik Frisk Date: Tue, 12 Jul 2022 18:53:48 +0200 Message-ID: Subject: Re: org-cature-ref To: org-mode-email Content-Type: multipart/alternative; boundary="000000000000084e1d05e39e7701" Received-SPF: pass client-ip=2a00:1450:4864:20::234; envelope-from=frisk.h@gmail.com; helo=mail-lj1-x234.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657644712; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=RuDrVWYqzoJhRKhpv/yKKU+rv9q5Mrl7yKD/yQWlCJY=; b=f5RznjtvwhrVjyfNOhWFKcEq8QdoPasz/YO/Mpua+9jhJPWBHoGbXmynewDr/ijaN8/VqR ifzkA6urvaBPmJ84Say4/PQ4xdu/9XI4dyjGuETRPFm+dDMI1VgsCVNPFYjZ8NcSi3G/Yf q2SCKZJt3iidp3+uVLFJfdDmRaYcPyvYwFK5HuI7haEk/unU/WzooGV8BtoE+Gb5nKbXdo 6tsr0S6hz6OQn+PfTEDZBPDqMaE6Ni5RBTBWD3p9HXz8Es4OyRaylbolKAXhaMUdcpGgLk V0Gss+xXwcPCRaTdLR3hKO5J1zqkq6yWucShc6xIhzddRtgbOMgb5wiKsTjt3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657644712; a=rsa-sha256; cv=none; b=ZiZX58daep9cY7lX2vzRBD22ZlUqUKdwOIJMMeu5xhkNQfmqEY5R94JiHilnnpzW11YWTd Xhs3yMDLfkUmfuFO7fFtkarje38b+H8u92ATsJdhy0qKglgwfc3aGkhbgHI93omdVaaA/w /s61IkxqEZfE89fNVDC543XfaU2ap5lVdBkxO+8prbIdJIBfdu9GqlDtkhU7BOTH2hxVW9 4enp2Zjgf2aIv/YbyhJa0MCR7j4SW0GlEy0aUgruVzPlMsoa9db8GwUQo1my837JuBv/J9 VwElzOXF6BzW+bhcHVu/xF9oIuHcICxRaNl1Fj30F5zu4e+r/4H/tKw9RJI08w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=f0Uw6GHJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.05 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=f0Uw6GHJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7C6B8117EA X-Spam-Score: -5.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: vHi9zm3noP+h --000000000000084e1d05e39e7701 Content-Type: text/plain; charset="UTF-8" Den tis 12 juli 2022 17:51Henrik Frisk skrev: > > > Den tors 7 juli 2022 kl 12:48 skrev Ihor Radchenko : > >> Henrik Frisk writes: >> >> > Ihor Radchenko recently mentioned org-capture-ref and I decided to try >> to >> > use it, but I'm having trouble getting it to work. I have org-protocl >> > working for me so I'm suspecting that it is the syntax of the >> bookmarklet >> > I'm using that is at fault. I merely changed the capture template key >> from >> > the example here: >> > >> > >> https://github.com/alphapapa/org-protocol-capture-html#org-protocol-instructions >> > >> > but that doesn't work (I get an empty buffer with what looks as the the >> > link contents as name). Apart from that I have just copied the template >> > from here: >> >> Do I understand correctly that you used the following bookmarklet: >> >> javascript:location.href = 'org-protocol://capture-html?template=w&url=... >> >> ? >> >> Is so, you probably need >> >> org-protocol://capture?template... >> instead of >> org-protocol://capture-html?template... >> >> Thanks, that was the issue and it works fine now. However, I can't seem > to get the org-capture-ref-get-bibtex-field to work by simply replacing org-capture-ref-headline-format > with it. Not sure where the ":bibtex-string" should go in the template > which is probably why it doesn't work. > > /h > > Failed to reply to list. Sorry. > > --000000000000084e1d05e39e7701 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Den tis 12 juli 2022 17:51Henrik Frisk <frisk.h@gmail.com> skrev:


Den tors 7 juli 2= 022 kl 12:48 skrev Ihor Radchenko <yantar92@gmail.com>:
=
Henrik Frisk <frisk.h@= gmail.com> writes:

> Ihor Radchenko recently mentioned org-capture-ref and I decided to try= to
> use it, but I'm having trouble getting it to work. I have org-prot= ocl
> working for me so I'm suspecting that it is the syntax of the book= marklet
> I'm using that is at fault. I merely changed the capture template = key from
> the example here:
>
> http= s://github.com/alphapapa/org-protocol-capture-html#org-protocol-instruction= s
>
> but that doesn't work (I get an empty buffer with what looks as th= e the
> link contents as name). Apart from that I have just copied the templat= e
> from here:

Do I understand correctly that you used the following bookmarklet:

javascript:location.href =3D 'org-protocol://capture-html?template=3Dw&= amp;url=3D...

?

Is so, you probably need

org-protocol://capture?template...
instead of
org-protocol://capture-html?template...

Thanks, that was the issue and it works fine now. How= ever, I can't seem to get the org-capture-ref-get-bibtex-field to= work by simply replacing org-capture-ref-headline-format with it. No= t sure where the ":bibtex-string" should go in the template which= is probably why it doesn't work.
<= br>
/h

Fail= ed to reply to list. Sorry.

--000000000000084e1d05e39e7701--