[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding a goto-heading protocol to org-protocol

From: Allen Li
Subject: Adding a goto-heading protocol to org-protocol
Date: Wed, 23 Jun 2021 06:34:38 +0000

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:

(defun goto-heading (arg)
  "Org protocol handler for navigating to Org headings.
ARG is a property list."
  (org-id-goto (plist-get arg :id))

(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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]