diff options
author | Thanos Apollo <[email protected]> | 2025-02-19 11:20:47 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2025-02-19 11:27:46 +0200 |
commit | 45d3fd39d43aef4baa960a4bcec973cc92f30115 (patch) | |
tree | d672ee0a048a0cb3adbb2ef080323c355ce198f1 | |
parent | 143909c32dc4299cc0b2d22bfd461d2595b2f415 (diff) |
[fix] insert-tags: Fix insertion of filetags for topic.
-rw-r--r-- | org-gnosis.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/org-gnosis.el b/org-gnosis.el index fbec7fd..d0973a5 100644 --- a/org-gnosis.el +++ b/org-gnosis.el @@ -489,9 +489,12 @@ If JOURNAL-P is non-nil, retrieve/create node as a journal entry." (list (completing-read-multiple "Select tags (separated by ,): " (org-gnosis-select 'tag 'tags '1=1 t)))) - (let ((id (org-gnosis-get-id))) + (let ((id (and (org-gnosis-get-id)))) (org-id-goto id) - (org-set-tags tags))) + (if (org-current-level) + (org-set-tags tags) + (dolist (tag tags) + (org-gnosis-insert-filetag tag))))) ;;;###autoload (defun org-gnosis-journal-find (&optional title) |