Closed coherentstate closed 3 months ago
From: coherentstate @.***> Date: Fri, 30 Aug 2024 10:17:25 -0700
Hi Prot,
Hello Abhirup,
Thanks for developing this awesome package!
You are welcome!
Recently I came across the following issue. Steps to reproduce:
- Open a denote file.
- Go to a heading and invoke
org-tree-to-indirect-buffer
.- Invoke
denote-link-or-create
.This leads to the error
The current file type is not recognized by denote
.
Indeed. We are checking if the buffer is backed by a file, but we have some exceptions for Org.
Can you evaluate the following and try again?
(defun denote--file-type-org-extra-p ()
"Return non-nil if this is an `org-capture' or Org Note buffer."
(and (derived-mode-p 'org-mode)
(or (and (bound-and-true-p org-capture-mode)
(string-match-p "\\`CAPTURE-.*" (buffer-name)))
(string-match-p "\\`\\*Org Note\\*" (buffer-name))
(null buffer-file-name))))
-- Protesilaos Stavrou https://protesilaos.com
Thanks for the quick response. I evaluated the function and its working.
Great! I just pushed the change.
Hi Prot,
Thanks for developing this awesome package!
Recently I came across the following issue. Steps to reproduce:
org-tree-to-indirect-buffer
.denote-link-or-create
.This leads to the error
The current file type is not recognized by denote
.Best, Abhirup