consistent naming

This commit is contained in:
bth 2025-12-25 18:58:13 -08:00
commit d3e20df7d3
2 changed files with 8 additions and 4 deletions

View file

@ -67,6 +67,10 @@ My config looks like this:
:custom (um-root-glob ".*/writing/journal") :custom (um-root-glob ".*/writing/journal")
:bind
("M-s t" . um-tag-grep)
("M-r t" . um-tag-dwim)
:config :config
(advice-add 'embark-target-file-at-point :around 'um-target-file-at-point-advice) (advice-add 'embark-target-file-at-point :around 'um-target-file-at-point-advice)

View file

@ -32,8 +32,8 @@
;; current project, falling back to a source directory. ;; current project, falling back to a source directory.
;; `um-target-file-at-point-advice' via `embark-dwim': open file under point in all ;; `um-target-file-at-point-advice' via `embark-dwim': open file under point in all
;; known projects, falling back to a source directory. ;; known projects, falling back to a source directory.
;; `um-tag-grep': search files with some tag
;; `um-grep-tag': search files with same tag ;; `um-tag-dwim': insert or delete a tag in dired and other contexts.
(require 'project) (require 'project)
@ -159,7 +159,7 @@
(match-string 1 header) (match-string 1 header)
)) ))
(defun um-grep-tag () (defun um-tag-grep ()
"Run `project-find-regexp' on a selection made from `um-tags-history' via `completing-read'. "Run `project-find-regexp' on a selection made from `um-tags-history' via `completing-read'.
The initial value provided to `completing-read' is the first tag found in the The initial value provided to `completing-read' is the first tag found in the
@ -206,7 +206,7 @@ insert when INSERT > 0, delete otherwise."
(um-tag-delete tag))) (um-tag-delete tag)))
;;;###autoload ;;;###autoload
(defun um-tag-insert-dwim (ARG) (defun um-tag-dwim (ARG)
"Run `um-tag-do' on a list of filenames if region active outside "Run `um-tag-do' on a list of filenames if region active outside
dired-mode, or if marks exist in dired-mode, or the filename at point, and dired-mode, or if marks exist in dired-mode, or the filename at point, and
finally in the current buffer if none of those conditions match. finally in the current buffer if none of those conditions match.