Function: majutsu-tag--wash-list

majutsu-tag--wash-list is a natively compiled function defined in majutsu-tag.el.

Signature

(majutsu-tag--wash-list ARGS)

Documentation

Wash `jj tag list` output into tag sections.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-tag.el
(defun majutsu-tag--wash-list (_args)
  "Wash `jj tag list` output into tag sections."
  (let* ((entries (majutsu-tag-parse-list-output (buffer-string)))
         (inhibit-read-only t))
    (delete-region (point-min) (point-max))
    (if (null entries)
        (magit-cancel-section)
      (dolist (entry entries)
        (let ((name (plist-get entry :name))
              (lines (plist-get entry :lines)))
          (magit-insert-section (jj-tag name t)
            (magit-insert-heading (car lines))
            (dolist (line (cdr lines))
              (insert line "\n")))))
      (insert "\n"))))