Replies: 1 comment 2 replies
-
I'm not against adding some string helpers in the Handlebars template. I actually added a few like An alternative would be to directly use shell commands in the template, with
Maybe the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!
I am setting up a group and command alias for my one on one/syncs at work, and I've reach a point where I think some additional helper functions in the handlebars syntax would be nice.
I have a command alias set up called
sync = "zk new --group=sync --extra with=$@"
, that I call aszk sync bob
.This fills in the following template
I would like to be able to
downcase
the tag andcapitalize
the section of the title, so that I can use the alias aszk sync bob
orzk sync Bob
and not have to worry about inconsistencies in the title and having duplicated tags. (Another thought is that tags could be case insensitive, but that is unrelated).I think I can probably get by with some shell functions for now, but let me know what you think.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions