From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eEazMy/W0mCv7QAAgWs5BA (envelope-from ) for ; Wed, 23 Jun 2021 08:35:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id ULFgLy/W0mDIQQAAbx9fmQ (envelope-from ) for ; Wed, 23 Jun 2021 06:35:27 +0000 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 F346CC49E for ; Wed, 23 Jun 2021 08:35:26 +0200 (CEST) Received: from localhost ([::1]:59416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvwTs-000105-Vx for larch@yhetil.org; Wed, 23 Jun 2021 02:35:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvwTP-0000zx-FS for emacs-orgmode@gnu.org; Wed, 23 Jun 2021 02:34:56 -0400 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]:47055) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvwTM-0004ex-OR for emacs-orgmode@gnu.org; Wed, 23 Jun 2021 02:34:55 -0400 Received: by mail-ot1-x32b.google.com with SMTP id v5-20020a0568301bc5b029045c06b14f83so880703ota.13 for ; Tue, 22 Jun 2021 23:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=eonyjUJgDUrGW0ClNXjAQh2hrj4L7oJ/ctoHXIlijhg=; b=jawk9gYbLMHdmg7aYaTqAOBNm+/zl4UWBtX2jUqZw0Itiy73GxnD9Z3w+vnFjQddyc ksYz6jBoLn6VgTiaFCmNwt0x2fLMFZEC5yBmII5O7K6/QQEhVioFbYtcWXrofefwpkfS BYWIwvyQyEmuzmioGLMjZPq73SiTk5AN9fRl+HHJx6GrmLmPLpusl3OKUoZrEdc4iB+N pKQnv227Q1K1yepdKniWMctWQkYa8IwR3D5ro5+7ybpm4+omfApSQWGvYPQTInLlhxHq Z9tIOvFAqMAcQAY5RYU87LRjd1p3KJk/hiGMhthy5OOo51I4h17wt74T+MtZDA4KehEG 0MEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=eonyjUJgDUrGW0ClNXjAQh2hrj4L7oJ/ctoHXIlijhg=; b=HvoJDCx9/LB0MZApIw04cNcRHjvXR0LSBS9aY1xYyZSEeBrS2yvtgUnixW0B8PYnyU yhLwvABjOS5uBPNOeAubT8755yJLmFcnpvd9Vc3v+NGZTQD4I0Qh0C3r2+tfPVnEJtxL gbsA80dXYPrFV2kNkPUwBgjcO1IgjKNo3S3quqs9Ydh/tplwM0YLyYhJONo8u90Fli7f Mjhxmty1XZNMKNn6gEq9uBtWtqfcf0g9sf6pvXsnCyqbPb+0PAlvUYBQE5Q/EC5JTK2X W69mK10+yfLPCm6QrESg4/g1JNQdPQmsmrOqT0axm1c6kLsohm68dfr1CxDNQuHOY2/M xeEA== X-Gm-Message-State: AOAM5308bmjRHxpR4oZMqQiI1E7ThipuLWFm/pfS1OFafU+U8j3x++rJ QfSs7fB4us66CfxiUB/1f/lVWttSE1WhQgegLtco4r2N904MUQ== X-Google-Smtp-Source: ABdhPJwWENX0wkT+KGHYd88IMxvo2wX9gcO5Ja4MAcr3GIws4a7oPV9dmOud1Kk/0DMbQIF5K3Un5zN5Eam3IYGubqE= X-Received: by 2002:a05:6830:821:: with SMTP id t1mr6552840ots.227.1624430088817; Tue, 22 Jun 2021 23:34:48 -0700 (PDT) MIME-Version: 1.0 From: Allen Li Date: Wed, 23 Jun 2021 06:34:38 +0000 Message-ID: Subject: Adding a goto-heading protocol to org-protocol To: Org Mode List Content-Type: multipart/alternative; boundary="0000000000006820e105c5691ac9" Received-SPF: pass client-ip=2607:f8b0:4864:20::32b; envelope-from=darkfeline@felesatra.moe; helo=mail-ot1-x32b.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624430127; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=eonyjUJgDUrGW0ClNXjAQh2hrj4L7oJ/ctoHXIlijhg=; b=m5Hk8OlBjAOzQ0FTO5aOTZJimEHVr8I3dIVFzLkH7qPTlHEe/iNF/aByPgtYI3FFgtOiiO FuLuMDByk5irf4Eq0NYivI4bDeHe3YOAf0oKD4mrUW5yXb9Oq0NhivrgyyDqsGb7eGN08H l2+i5ZrbGoGt/CZ4XtKy0hPBDsNEoWeqcROa5GinjCFR5nDhjJvan43cuiyxZ7+JKZ8YCB zR9Zo7/3lyzweYe+9Sqa7o1cKLL1bFcVQXzaFU6nzHFquXqdzZaSOGlWXFoWzOFqk0Q0j+ f9iC+9UbQRBGy8WQWGb1HOdeVErA4VqhceVKYkhy+d2wxmb8zt0lnFj1EyKY9w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624430127; a=rsa-sha256; cv=none; b=b87vPjQg56u2YPi5e9/rk7njdXGD7fovMZPk7SmWMN9MlcTSk3yPpcy7ouu+Lu5UVrbza4 ToAjLdzZMEH+gkH/7Qk2qA0MSHQyGQeVm2xscYda7FVEhpiEeo6F/FBCAcWYTHf5/EoOCS 8iWPNgVCdp8j+XnorE1a1PDVhe0Y/6n1r9POTuhi6gqsBedhbnuZDRQPYVIlNJ7FzxPh5O ySFpimGaq8QZ6KdOoTqn0yHbr1qXUpJNFjH6vXl+8dRxl3hX+U1yHvX1ffP+RiRNdqRj98 Z4jT4Imn/sNRKYdsFHUOMuz7g3i+AY9jqPpFnZi5mWc3+FoTrqECXFu3fZZ7hg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=felesatra-moe.20150623.gappssmtp.com header.s=20150623 header.b=jawk9gYb; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=felesatra-moe.20150623.gappssmtp.com header.s=20150623 header.b=jawk9gYb; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: F346CC49E X-Spam-Score: -2.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: pBjJG5Jgj2NF --0000000000006820e105c5691ac9 Content-Type: text/plain; charset="UTF-8" I have a feature request that I'm wondering whether it would be suitable. The idea is to add a new protocol that looks like "org-protocol://goto-heading?id=UUID-HERE" that jumps to the specified Org heading in Emacs. The implementation is really simple: ;;;###autoload (defun goto-heading (arg) "Org protocol handler for navigating to Org headings. ARG is a property list." (org-id-goto (plist-get arg :id)) (raise-frame)) (then add the appropriate item to org-protocol-protocol-alist-default) The use case for this is to be able to link to Org headings from external programs, e.g., Google Docs. --0000000000006820e105c5691ac9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have a feature request that I'm wondering whether it= would be suitable.

The idea is to add a new protocol th= at looks like "org-protocol://goto-heading?id=3DUUID-HERE" that j= umps to the specified Org heading in Emacs.=C2=A0 The implementation is rea= lly simple:

;;;###autoload
(defun goto-heading = (arg)
=C2=A0 "Org protocol handler for navigating to Org headings.<= br>ARG is a property list."
=C2=A0 (org-id-goto (plist-get arg :id)= )
=C2=A0 (raise-frame))

(then add the appro= priate item to=C2=A0org-protocol-protocol-alist-default)

The use case for this is to be able to link to Org headings from ext= ernal programs, e.g., Google Docs.
--0000000000006820e105c5691ac9--