Function: treemacs-TAB-action
treemacs-TAB-action is an interactive and byte-compiled function
defined in treemacs-interface.el.
Signature
(treemacs-TAB-action &optional ARG)
Documentation
Run the appropriate TAB action for the current node.
In the default configuration this usually means to expand or close the content of the currently selected node. A potential prefix ARG is passed on to the executed action, if possible.
This function's exact configuration is stored in treemacs-TAB-actions-config.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-interface.el
(defun treemacs-TAB-action (&optional arg)
"Run the appropriate TAB action for the current node.
In the default configuration this usually means to expand or close the content
of the currently selected node. A potential prefix ARG is passed on to the
executed action, if possible.
This function's exact configuration is stored in `treemacs-TAB-actions-config'."
(interactive "P")
(-when-let (state (treemacs--prop-at-point :state))
(--if-let (cdr (assq state treemacs-TAB-actions-config))
(progn
(funcall it arg)
(treemacs--evade-image))
(treemacs-pulse-on-failure "No TAB action defined for node of type %s."
(propertize (format "%s" state) 'face 'font-lock-type-face)))))