Closed goofansu closed 6 months ago
Closing. I'll export to temporary buffer.
From: Yejun Su @.***> Date: Wed, 15 May 2024 06:59:44 -0700
Closing. I'll export to temporary buffer.
The problem you were facing is that you had duplicate identifiers. In this case, we arrange to prioritise Org over other formats because we assume this is due to an Org export. The relevant function is 'denote-get-path-by-id'.
-- Protesilaos Stavrou https://protesilaos.com
I export org files to markdown files for pasting into GitHub, Jira, etc, so there will be two files with the same identifier: "20240515T213133--demo.org" and "20240515T213133--demo.md". Call
denote-link
and select either file will create the same link[[denote:20240515T213133][demo]]
, butorg-open-at-point
on such link always open the markdown file.Notice the exported markdown file doesn't has any denote's properties such as
#+identifier
, butdenote-link
prompts displays the file.My current workarounds are:
export_file_name
property such as#+export_file_name: exports/demo
, so the exported file doesn't appear indenote-link
prompts.