Usage of .StackCount? #6463
Answered
by
PGScully
MeRayORG
asked this question in
Troubleshoot
|
I want to ask what the usage of stackcount is, because any usage that I could guess doesn't seem to be useful. At first I thought it was to get the total amount of folders from the home directory or the root, whichever applies. Then, maybe it's the current stackcount at each folder, but that also didn't work. And if you put it somewhere else in the template, it's just 0. "properties": {
"folder_icon": "{{.StackCount - 3}}",
"folder_separator_icon": "\ue0b0",
"style": "agnoster_short",
"max_depth": 3,
"folder_format": "{{.StackCount}}%s"
},
"template": "{{.StackCount}}{{ .Path }}",
"type": "path" |
Answered by
PGScully
May 27, 2025
Replies: 1 comment
|
It's the size of the directory stack used by the |
0 replies
Answer selected by
MeRayORG
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

It's the size of the directory stack used by the
pushd,popdanddirsshell builtins.