chhoumann / quickadd

QuickAdd for Obsidian
https://quickadd.obsidian.guide
MIT License
1.5k stars 136 forks source link

[FEATURE REQUEST] Multi Choice → Support for `::placeholder` #513

Open FelipeRearden opened 1 year ago

FelipeRearden commented 1 year ago

Hello @chhoumann !!!!!

Is your feature request related to a problem? Please describe. Sometimes, when creating a Muti choice with complex Macro/Capture choices I feel that could have a helper text

Describe the solution you'd like Be able to add a custom ::placeholder for every Multi choice By custom I mean that this new feature is optional and unique for each Multi choice.

AEEDD559-443F-4E51-85CD-40A0D242B1DF


Thanks for reading this, let me know if you have any question :)

I wish you a fantastic day ☀️

ReidWeb commented 1 year ago

Sounds like what I suggested in #337, so bringing my comment over here:


I use the value of certain captured fields to drive my file names, e.g.

template.md

---
<%* 
let formattedFileName = tp.file.title
formattedFileName = formattedFileName.replace(/_/g,' ')
-%>
title: formattedFileName
---
Body 

then in quick add I have title configured as

{{DATE}}-{{VALUE:title}}

This creates a file 2023-05-29-My_Test_File

with content

---
title: My Test File
---

I would love to be able to add a 'comment' that reminds me to Snake_Case my file names, or can be used to remind me of something else e.g.

title: {{VALUE:title#Snake cased name to give the file}}

Which could show up as

image

Realistically, I have plenty more use cases for this, such as adding a description to the template fields I have for 'Person' records.

danielo515 commented 1 year ago

Related to this is #547