emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Masterson <dsmasterson92630@outlook.com>
To: John Kitchin <jkitchin@andrew.cmu.edu>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: References?? (feature idea)
Date: Sun, 14 Mar 2021 18:10:07 -0700	[thread overview]
Message-ID: <SJ0PR03MB5455FE3175F0E5E4F513C2749B6C9@SJ0PR03MB5455.namprd03.prod.outlook.com> (raw)
In-Reply-To: <CAJ51ETo_a3k9ykpD3WdiOP+=0eEeua-iV3jGiDgY5VvZxeEa-w@mail.gmail.com> (John Kitchin's message of "Sun, 14 Mar 2021 20:01:21 -0400")

John Kitchin <jkitchin@andrew.cmu.edu> writes:

> You could define a new org link with this behavior. You just need to
> work out a syntax for a link to the heading that also includes the
> property name. e.g.  [[property:file.org::*Heading::property]]
>
> then, define a :follow function that probably opens the heading when
> you open it, and an :export function that looks up the property and
> uses that value on export.
>
> You would split your path on ::, then you should have a list like
> (file heading property-name). For the follow function, just find-file
> on the filename, then search for the heading. For the export, wrap
> that in save-window-excursion, and use (org-entry-get) on the heading
> to get the property value.

Hmm. Interesting. I'll have to think about that.
-- 
David Masterson


      reply	other threads:[~2021-03-15  1:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-14 23:24 References?? (feature idea) David Masterson
2021-03-15  0:01 ` John Kitchin
2021-03-15  1:10   ` David Masterson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR03MB5455FE3175F0E5E4F513C2749B6C9@SJ0PR03MB5455.namprd03.prod.outlook.com \
    --to=dsmasterson92630@outlook.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jkitchin@andrew.cmu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).