Variable: treemacs-recenter-after-project-expand
treemacs-recenter-after-project-expand is a customizable variable
defined in treemacs-customization.el.
Value
on-visibility
Documentation
Decides when to recenter view after expanding a project root node.
Possible values are:
* nil: never recenter
* 'always: always recenter
* 'on-distance: recenter based on treemacs-recenter-distance
* 'on-visibility: recenter only when the newly rendered lines don't fit the
current screen
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-customization.el
(defcustom treemacs-recenter-after-project-expand 'on-visibility
"Decides when to recenter view after expanding a project root node.
Possible values are:
* nil: never recenter
* \\='always: always recenter
* \\='on-distance: recenter based on `treemacs-recenter-distance'
* \\='on-visibility: recenter only when the newly rendered lines don't fit the
current screen"
:type '(choice (const :tag "Always" always)
(const :tag "Based on Distance" on-distance)
(const :tag "Based on Visibility" on-visibility)
(const :tag "Never" nil))
:group 'treemacs)