mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-15 09:46:24 -04:00
Remove :reverse parameter from 'denote-links' Org dynamic block
We do not expose this feature to the commands we provide. Adding it here creates inconsistencies, such as, for example, with the 'denote-files' Org dynamic block. I prefer to remove this option than to see its proliferation.
This commit is contained in:
parent
50e392ffbe
commit
00632408ed
|
|
@ -50,8 +50,7 @@
|
|||
(read-regexp "Search for notes matching REGEX: " nil 'denote-link--add-links-history)))
|
||||
(org-create-dblock (list :name "denote-links"
|
||||
:regexp regexp
|
||||
:id-only nil
|
||||
:reverse nil))
|
||||
:id-only nil)
|
||||
(org-update-dblock))
|
||||
|
||||
(org-dynamic-block-define "denote-links" 'denote-org-dblock-insert-links)
|
||||
|
|
@ -61,8 +60,7 @@
|
|||
Used by `org-dblock-update' with PARAMS provided by the dynamic block."
|
||||
(let* ((regexp (plist-get params :regexp))
|
||||
(rx (if (listp regexp) (macroexpand `(rx ,regexp)) regexp))
|
||||
(block-name (plist-get params :block-name))
|
||||
(denote-link-add-links-sort (plist-get params :reverse)))
|
||||
(block-name (plist-get params :block-name)))
|
||||
(when block-name
|
||||
(insert "#+name: " block-name "\n"))
|
||||
(denote-add-links rx (plist-get params :id-only))
|
||||
|
|
|
|||
Loading…
Reference in a new issue