Currently, this is the format of my ZSH Prompt. I have been reading over https://zsh.sourceforge.io/Doc/Release/Prompt-Expansion.html#Prompt-Expansion to further understand truncation in zsh prompts, but I cannot figure out how to solve this nested truncation problem I am running into.
export PROMPT="(%10>,,,>[%5>...>william%>>]hello%>>)"
gives
([wi...]hello)
when I want it to initially truncate the interior expression %5>...>william%>>
then take that truncated expression and pass it into the exteriior expression and truncate that.
i.e. I want the output
([wi...,,,