Open RobertoPrevato opened 1 year ago
Additional considerations:
qmark
, or if it could be composed of more characters:detective:
, :eggplant:
, etc.Multiple characters in my opinion would make sense, if the user can configure them, like in this example:
love_copier: type: bool # This makes Copier ask for y/n help: Do you love Copier (with chosen icon)? default: yes # Without a default, you force the user to answer qmark: "β€οΈ "
I don't think this is a good example. Obviously everybody loves copier! ππ
Ahem... let's get serious.
AFAICS all you want is an option to hide those icons, because then the help can contain anything you want, including one or more icons.
However I don't really like this proposal TBH... By having a static set of icons, users know that a spy means the answer won't be recorded, or that a mic means waiting for answer. I'm afraid if this could make more harm than good. π€
Thanks for your reply. π
I don't think the change could harm anybody: if you look at the diff
section, the current behavior wouldn't change for those who don't care about customizing icons. The only difference is that the user of Copier would have the option, if they desire, to specify a different icon for a question.
Whether that is important or not it's of course a matter of personal preference, it's just cosmetics after all. But I don't see how that could harm: the author of the template needs to explicitly opt-in for that. If it's about not confusing the user of the templates, I could argue that also the π΅πΌ icon is not an universally recognized symbol that something is a secret.
Well, it was more practical some time ago, when we didn't have a nice TUI. Now secrets are written as *****
which is also specific enough.
OK, I'll merge the PR if you want to do it. π Remember to add proper docs and tests. Thanks!
Thank You! π I will!
Hi, Foreword: I started studying Copier and I love it! This is just about cosmetics.
I would like being able to configure custom icons for questions. I looked at the source code, and saw that the microphone emoji π€ and the detective emoji π΅πΌ are hard-coded.
Would you consider adding the option to customize icons? I wrote an example in the
diff
block below, to support custom icons for questions in a backward-compatible way. I tried locally I get something like:The only problem I see is that, for some reasons, some emojis seem to include right padding (like a single space), some others require a space added, like the red heart UTF-8 character
β₯
, which I get when I paste the β€οΈ emoji in Visual Studio Code.If you agree and welcome a PR, I can submit one.