Function: treemacs--create-file-button-strings
treemacs--create-file-button-strings is a byte-compiled function
defined in treemacs-rendering.el.
Signature
(treemacs--create-file-button-strings PATH PREFIX PARENT DEPTH)
Documentation
Return the text to insert for a file button for PATH.
PREFIX is a string inserted as indentation. PARENT is the (optional) button under which this one is inserted. DEPTH indicates how deep in the filetree the current button is.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-rendering.el
(define-inline treemacs--create-file-button-strings (path prefix parent depth)
"Return the text to insert for a file button for PATH.
PREFIX is a string inserted as indentation.
PARENT is the (optional) button under which this one is inserted.
DEPTH indicates how deep in the filetree the current button is."
(inline-letevals (path prefix parent depth)
(inline-quote
(list
,prefix
(treemacs-icon-for-file ,path)
(propertize (->> ,path file-name-nondirectory (funcall treemacs-file-name-transformer))
'button '(t)
'category 'treemacs-button
'help-echo nil
'keymap nil
:default-face 'treemacs-git-unmodified-face
:state 'file-node-closed
:path ,path
:key ,path
:parent ,parent
:depth ,depth)))))