chhoumann / quickadd

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

[FEATURE REQUEST] QoL option to `quickadd.api.inputPrompt` #717

Open FelipeRearden opened 1 month ago

FelipeRearden commented 1 month ago

Hello @chhoumann !!!!!

I am app.plugins.plugins.quickadd.api.inputPrompt; and app.plugins.plugins.quickadd.api.WideinputPrompt heavy user and there is one tiny thing that would be extremely helpful for optimize the user experience.

Let me use an example…

I use this snippet in a Templater script to add tags to YAML:

app.plugins.plugins.quickadd.api.inputPrompt("", "", "#");

πŸ“· IMG_1283

As you can see, it will open the input with the character # inside the prompt input

This way I can easily use this prompt to add a tag to YAML from my own tags or a new tag in the same command.

The Problem

Looking at the image again, you will see the # is selected . This way, if when I type, it will replace # .

My FR

πŸ“· On option to open the prompt with the caret cursor position after the value instead of the selection of the value

IMG_1284


Thanks for reading this !!!!! I hope you like my suggestion πŸ™ πŸ™ πŸ™

Let me know if you need more information !!!

Have a great day 🌞