summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2025-02-26 17:46:14 +0200
committerThanos Apollo <[email protected]>2025-02-26 17:46:14 +0200
commit18fa485148c69c512346c54d3840df410e54b42a (patch)
tree79e17f0ab1015db54e78dec2a73b1e4558a47a53
parent3b1444e0e931cb187255d9bba9288c0443945d8b (diff)
journal-insert: Add support for custom description.
+ This commit should have been included in version 0.0.8.
-rw-r--r--org-gnosis.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/org-gnosis.el b/org-gnosis.el
index 2fe269f..064814f 100644
--- a/org-gnosis.el
+++ b/org-gnosis.el
@@ -526,10 +526,12 @@ If JOURNAL-P is non-nil, retrieve/create node as a journal entry."
(org-gnosis-select-template org-gnosis-journal-templates)))))
;;;###autoload
-(defun org-gnosis-journal-insert ()
- "Insert journal entry."
- (interactive)
- (org-gnosis-insert t))
+(defun org-gnosis-journal-insert (arg)
+ "Insert journal entry.
+
+If called with prefix ARG, use custom link description."
+ (interactive "P")
+ (org-gnosis-insert arg t))
;;;###autoload
(defun org-gnosis-journal ()