Modal Form for Creating Tasks WITH tags auto completion #3314
edakimling
started this conversation in
Show and tell
Replies: 2 comments 4 replies
-
Thanks @edakimling. Any chance you could include a screenshot of each stage or stages please? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I have put the JSON text in to a fenced code block so that:
|
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
-
Fist off, thank you dev for this incredible plugin. It is very powerful and greatly appreciated.
I know we all sorely miss the tags auto completion feature in the create task form. This matters to those of us that create tasks anywhere in obsidian with a hotkey and tasks are then written into one main file. Then tasks are shown in dashboards, daily notes, etc via tasks queries.
In this thread it is discussed how this feature is important to people, but the dev does not have time/skills to implement it. I agree that especially with nested tags, it is impossible to remember them and not misspell them. Thus this feature is crucial for many of us.
I have created and alternate form using modal forms and quickadd plugins. This form is missing some functionality (listed below) but I find it does the job for the 99% of people and crucially, you can now auto select tags. In some other ways the form is also better, such as supplying default values, which speeds up tasks creation even more.
Benefits of This Form
Cons of This Form
It is possible some (all?) of these cons could be resolved with further coding, but this is for someone with far more skills than I possess in js.
How to setup
install quickadd, tasks and of course modal forms plugins
Open the modal forms manager via the command palette. Import the code below for the form. Edit the form to your liking - add fields, remove fields, modify order, etc. BEWARE that removing fields will break the code for the quickadd, so you must remove their mentions there too. Same for adding. If you add new fields, you must add code in the js snippet for quickadd. But that should be easy; use my code as example. Just remember to insert the new fields at the right places.
Save the form.
Open quick add via command palette. Add a new capture. Click on the lighting bolt.
Click on the settings icon and setup the quickadd to capture (append) to an existing file. This is commonly how folks in obsidian do it, but feel free to do it s per your setup of course.
Navigate to the bottom section where it says 'capture format' and paste in the js code below.
Exit and go to hotkeys and set the hotkey for the new quick add.
Congratulations, you should be all done. Open the file where tasks will be appended. Invoke the hotkey and try the form out. If there are issues, write to me here. Watch tutorials on YT on how to set things up. I highly recommend this person's blog; he did an amazing job explaining quickadd, modal forms etc.
Modal Form - import this in your modal form manager
js code for capture in quickadd (note that github strips out the opening 3 back tics and js quickadd you must add that)
`
`
Beta Was this translation helpful? Give feedback.
All reactions