mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Make silo commands not require superfluous prefix argument
This was a mistake. The intent was to run those commands without a prefix argument. Thanks to l-o-l-h for mentioning this in issue 216: <https://github.com/protesilaos/denote/issues/216>.
This commit is contained in:
parent
1bd8e36f2f
commit
fa5548f766
|
|
@ -65,24 +65,18 @@ as the variable `denote-directory'."
|
|||
nil 'denote-silo-extras-directory-history)))
|
||||
|
||||
;;;###autoload
|
||||
(defun denote-silo-extras-create-note (&optional silo)
|
||||
(defun denote-silo-extras-create-note (silo)
|
||||
"Select SILO and run `denote' in it.
|
||||
SILO is a file path from `denote-silo-extras-directories'."
|
||||
(interactive
|
||||
(list
|
||||
(when current-prefix-arg
|
||||
(denote-silo-extras--directory-prompt))))
|
||||
(interactive (list (denote-silo-extras--directory-prompt)))
|
||||
(let ((denote-user-enforced-denote-directory silo))
|
||||
(call-interactively #'denote)))
|
||||
|
||||
;;;###autoload
|
||||
(defun denote-silo-extras-open-or-create (&optional silo)
|
||||
(defun denote-silo-extras-open-or-create (silo)
|
||||
"Select SILO and run `denote-open-or-create' in it.
|
||||
SILO is a file path from `denote-silo-extras-directories'."
|
||||
(interactive
|
||||
(list
|
||||
(when current-prefix-arg
|
||||
(denote-silo-extras--directory-prompt))))
|
||||
(interactive (list (denote-silo-extras--directory-prompt)))
|
||||
(let ((denote-user-enforced-denote-directory silo))
|
||||
(call-interactively #'denote-open-or-create)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue