Function: treemacs-doubleclick-action
treemacs-doubleclick-action is an autoloaded, interactive and
byte-compiled function defined in treemacs-mouse-interface.el.
Signature
(treemacs-doubleclick-action EVENT)
Documentation
Run the appropriate double-click action for the current node.
In the default configuration this means to expand/collapse directories and open files and tags in the most recently used window.
This function's exact configuration is stored in
treemacs-doubleclick-actions-config.
Must be bound to a mouse double click to properly handle a click EVENT.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-mouse-interface.el
;;;###autoload
(defun treemacs-doubleclick-action (event)
"Run the appropriate double-click action for the current node.
In the default configuration this means to expand/collapse directories and open
files and tags in the most recently used window.
This function's exact configuration is stored in
`treemacs-doubleclick-actions-config'.
Must be bound to a mouse double click to properly handle a click EVENT."
(interactive "e")
(when (eq 'double-mouse-1 (elt event 0))
(goto-char (posn-point (cadr event)))
(when (region-active-p)
(keyboard-quit))
(-when-let (state (treemacs--prop-at-point :state))
(--if-let (cdr (assq state treemacs-doubleclick-actions-config))
(progn
(funcall it)
(treemacs--evade-image))
(treemacs-pulse-on-failure "No double click action defined for node of type %s."
(propertize (format "%s" state) 'face 'font-lock-type-face))))))