Function: forge-edit-topic-note
forge-edit-topic-note is an interactive and byte-compiled function
defined in forge-commands.el.
Signature
(forge-edit-topic-note)
Documentation
Edit your private note about the current topic.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-commands.el
(transient-define-suffix forge-edit-topic-note ()
"Edit your private note about the current topic."
:transient #'transient--do-quit-all
:inapt-if-not #'forge-current-topic
:description
(lambda ()
(if-let ((topic (forge-current-topic)))
(concat "note "
(if-let ((note (oref topic note)))
(propertize (substring note 0 (string-match-p "$" note))
'face 'font-lock-string-face)
(propertize "none" 'face 'magit-dimmed)))
"note"))
(interactive)
(if-let* ((topic (forge-current-topic t))
(repo (forge-get-repository topic))
(default-directory (forge-get-worktree repo)))
(forge--setup-post-buffer topic #'forge--save-note
"%i;note" "New note on #%i of %p" nil
(lambda ()
(when-let ((note (oref topic note)))
(save-excursion (insert note ?\n)))))
(message "Cannot determine topic or worktree")))