Similar in function to Drafts’ auto-complete feature, based on an HTML view. Creates a menu from a source draft. Features a live filter to make it easy to get to the item you need.
- Use indents in your list to establish a hierarchy (headings/parent nodes).
- Insert UUID for “sourceDraft” variable at the top of first script to set your source.
- There are prefix/suffix variables at the top of the second script that allow you to, for example, surround your selected item with wiki-link formatting on insertion.
- My personal use case: I keep a list of daily actions that I regularly insert into my daily logs. There’s a “% completed” placeholder that’s a nice feature in this use case— you can remove that by searching for “Search items (${completionPercentage}% completed)” in the first script and removing that placeholder text.
Oh, and I should perhaps add: this also differs from the autocomplete feature in that it has no support for template tags (e.g. no shortcodes for dates or other dynamic variables).