Can't speak for how Diego imagined it, but this kind of custom autocomplete is a really interesting idea. I would imagine that beginning an autocomplete run with a custom prefix would run an arbitrary filter and provide (much like the command palette in VSCode et al.) the results of the filter as choices. A variable completionText accessible within the filter would provide access to the current partial match (with the prefix removed).
It would be *even awesomer* if the current tiddler was also accessible within the custom filter, and if the text completed when you accept the completion can be something different than what's shown in the list (not sure if CodeMirror offers this kind of "snippet"-ish capability; see second example). So e.g., config tiddlers could look like: title: TagAutocompleter tags: $:/tags/CodeMirrorAutocomplete description: Allow tags to be autocompleted prefix: # filter: [tagging[]prefix<completionText>] title: EmailAutocompleter tags: $:/tags/CodeMirrorAutocomplete description: Given part of a contact name, autocomplete the contact's email address prefix: @ filter: [tag[Contact]search:fullname<completionText>get[email]] Then, say, to find specifically a tag called Test, even with 500 non-tag tiddlers beginning with T: #T<C-space> ==> Test And to complete an email address: @Alice<C-space> ==> [email protected] On Sunday, March 28, 2021 at 9:15:35 PM UTC-5 [email protected] wrote: > Thanks! > > Diego, it is possible to do custom autocomplete menu-content. Can you give > a more specific example of what you hope to see? > On Sunday, March 28, 2021 at 6:27:12 PM UTC-6 [email protected] wrote: > >> Wow this autocomplete is lovely! And this seems more future-facing than >> the EditCompText plugin! >> >> Do you know how we can define custom autocomplete triggers and >> menu-content? As in, when I type '@' I get a certain filter result, to >> choose from, etc. etc. >> >> Thank you! >> >> On Sunday, March 28, 2021 at 5:27:46 PM UTC-5 [email protected] wrote: >> >>> Excellent! Mahalo (thanks) for sharing! >>> >>> -Joshua Fontany >>> >>> On Sunday, March 28, 2021 at 1:59:11 PM UTC-7 [email protected] wrote: >>> >>>> Hi Everyone, >>>> >>>> I first released TW5-CodeMirror-plus six months or so back but didnt >>>> get time to work on it since then. This is a major update with some nice >>>> additions. >>>> >>>> Checkout it out here: >>>> https://adithya-badidey.github.io/TW5-codemirror-plus/ >>>> >>>> Cheers >>>> Adithya >>>> >>> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/814c4b2c-dbea-4195-a28f-b8158a5b1c9fn%40googlegroups.com.

