Function: treemacs-temp-resort-root
treemacs-temp-resort-root is an interactive and byte-compiled function
defined in treemacs-interface.el.
Signature
(treemacs-temp-resort-root &optional SORT-METHOD)
Documentation
Temporarily resort the entire treemacs buffer.
SORT-METHOD is a cons of a string describing the method and the actual sort
value, as returned by treemacs--sort-value-selection. SORT-METHOD will be
provided when this function is called from treemacs-resort and will be
interactively read otherwise. This way this function can be bound directly,
without the need to call treemacs-resort with a prefix arg.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-interface.el
(defun treemacs-temp-resort-root (&optional sort-method)
"Temporarily resort the entire treemacs buffer.
SORT-METHOD is a cons of a string describing the method and the actual sort
value, as returned by `treemacs--sort-value-selection'. SORT-METHOD will be
provided when this function is called from `treemacs-resort' and will be
interactively read otherwise. This way this function can be bound directly,
without the need to call `treemacs-resort' with a prefix arg."
(interactive)
(-let* (((sort-name . sort-method) (or sort-method (treemacs--sort-value-selection)))
(treemacs-sorting sort-method))
(treemacs-without-messages (treemacs-refresh))
(treemacs-log "Temporarily resorted everything with sort method '%s.'"
(propertize sort-name 'face 'font-lock-type-face))))