Replies: 1 comment 1 reply
-
@cmaahs perfectly solvable I guess. I'll have a look after lunch. EDIT: we already have 👉🏻 #3504 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently re-discovered oh-my-posh! I've even already written my own segment to show me the number of MR/PR when I am at the top directory of a git worktree... Of course, it is horribly lacking caching currently, and the call is visibly slow. So, toggle...
I use toggle quite a bit, and in this case, easy enough, toggle based on the
type
. I also added several text based segments, and have worked around the full toggle of text type with env variable checking. It occurs to me that if atag
property was added to thesegment
object, then a toggle could optionally operate on thetag
value rather than thetype
.Of course, easy in my head... :)
Beta Was this translation helpful? Give feedback.
All reactions