Function: treemacs-visit-node-ace

treemacs-visit-node-ace is an interactive and byte-compiled function defined in treemacs-interface.el.

Signature

(treemacs-visit-node-ace &optional ARG)

Documentation

Open current file or tag in window selected by ace-window.

Stay in the current window with a single prefix argument ARG, or close the treemacs window with a double prefix argument.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-interface.el
(defun treemacs-visit-node-ace (&optional arg)
  "Open current file or tag in window selected by `ace-window'.
Stay in the current window with a single prefix argument ARG, or close the
treemacs window with a double prefix argument."
  (interactive "P")
  (run-hook-with-args
   'treemacs-after-visit-functions
   (treemacs--execute-button-action
    :window (ace-select-window)
    :file-action (find-file (treemacs-safe-button-get btn :path))
    :dir-action (dired (treemacs-safe-button-get btn :path))
    :tag-section-action (treemacs--visit-or-expand/collapse-tag-node btn arg nil)
    :tag-action (treemacs--goto-tag btn)
    :window-arg arg
    :ensure-window-split t
    :no-match-explanation "Node is neither a file, a directory or a tag - nothing to do here.")))