Auto Complete plugin 1.0.15 - Complete tiddlers, fields and your dreams

1.0.12 is out:

  • Using mouse for Auto Complete now works in tiddlers opened in a separate window
  • No longer crashes when using together with a Twitter plugin or any other plugin which delays the execution of the startup module
  • This plugin now takes preference over codemirror-autocomplete and will prevent the code mirror Auto Complete from opening at the same time as this
  • Various small fixes and tweaks to problems introduced from 1.0.9 to 1.0.11.

This is fixed now!

Gruvbox dark [Not good]

Cupertino dark [Not good]

Desert sand [Good]

Twilight [Almost goog]

Vanilla [Good]

It seems the issue with themes themselves not with Auto Complete! But as you see in some cases the contrast is not enough for highlighted item!

I have seen these examples before. I give a try! I see 1.0.12 has macro example

But yes, scanning the macro tiddlers is a bit complex as there are flexibilities in defining macros.
So as I explained above I thought to use data tiddler.

Your color: example is a good point to start. We can use the same strategy for example typing << or macro: triggers macro autocompletion and selecting list-links inserts <<list-links tiddler:"" field:"" emptyMessage:"" type:"ul" subtype:"li" class:"" itemTemplate:"">>

Thank you

Thank you, sir. I can confirm mouse operation is as expected and advertised. I have made the decision to start using your plugin day-to-day instead of edit-comptext. The biggest selling point for me is the ease of configuring additional triggers. Very well done. Looking forward to seeing more of your work!

Thank you from another former edit-comptext user! I doubt it was one of your intended use cases, but I’m also seeing a lot of potential for building a custom autocorrect. I use a handful of proper nouns with non-keyboard characters, and I’m really looking forward to never needing an alt-code again.

Indeed, a lot of the palettes have terrible contrast in certain circumstances – I talked a little about it in this Issue I raised. I can’t really do anything about it, my best suggestion is to tweak the colors of the palette…

… Or I guess I could also add an option to toggler between using background color for selection and maybe outline CSS property. Hmm.

Thank you! I also have another plugin that’s as polished as this one called Task List which I am particularly proud and fond of, but its usability is not as general as this.

I didn’t but that’s why I made it so generic – so that it can be used for wild purposes! A word of warning: typing might slow down a little if you have hundreds of triggers, particularly if you use Code Mirror, and the options UI isn’t really suited for that many triggers. I hope you plan to either have only a handful of them or have a generic one that uses a dictionary as a data source and is triggered by something like fancyword: or something :slight_smile:

1 Like

Thank you @Maurycy
I started using Auto Complete on my daily notes and some research project wikis.
I will return to you with feedback.

@Zheng_Bangyou
I remember you adopted autocomplete from TW5-extendedit for Refnotes.
What do you think to switch from TW5-extendedit to Auto Complete which is much easier to configure for intermediate users?

1 Like

7 posts were merged into an existing topic: Community Curated AutoComplete Triggers

Wonderful! Thank you @Zheng_Bangyou
Works like a charm on TW5.2.3+Refnotes 1.8.3 + Auto Complete 1.0.12

1 Like

@Maurycy Is it possible to configure the popup so that it automatically closes (without making a selection) when I type ]]? I’ve been doing a moderate amount of linking to tiddlers that don’t exist yet, and it’d be very handy if the popup could just get out of my way once I’ve closed a link.

I can’t hardcode it to react to ]] as the cancel statement because that wouldn’t be very flexible but I’ve been pondering this issue for a while. I’ve been thinking about these possible solution:

  • Distance from last valid suggestion: basically you define a number, and if you type that number of characters since getting “No results” then it automatically closes.
  • Cancel Triggers Filter: A filter that returns a list of triggers that, if detected, will cancel Auto Completion. This way one could define something like: [[ ]] [<rb>addsuffix<rb>] to automatically close suggestion if a space or ]] is typed (I’d expose <lb> and <rb> as variables that contain [ and ] respectively)

Perhaps both of them should be implemented.

A small hack you can use for now is if there are no results typing enter will (should!) just stop auto completion without anything being changed or inserted.

1.0.14 is out:

  • Fixed a bug where navigating through auto completion would still trigger TW’s keyboard widgets eg. navigating auto completion in sidebar search would also change selected search result
  • The list of suggestion can now be scrolled down using the keyboard.
  • Added caption to triggers to improve how they are displayed in the settings

Both were suggestions from @Mohammad posted on Github here and here.

4 Likes

Oh man, this is great! Encapsulate all snippets as Auto Complete :wink: This saves users from many scrolls up and down and or opening the editor menus and search.!

I am thinking we can also have a trigger for inserting images instead of clicking the image button on the editor toolbar…

The demo does not work, I assume you need to attach one oe two tiddler tagged with $:/snippet. If you don’t mind, please revise the original post!

Example in the original post is updated.

1 Like

This is very useful for new users. If these snippets were all included in the empty/basic edition it would help the onboarding process significantly.

Without understanding how this works under the hood, would it be possible to create table of content style or hierarchical pop-ups similar to how context menus can be created in this thread.

Ex:

Another feature I would find useful is to have different background colours for different snippets.

1 Like

You know, one feature I was thinkin about was adding a context to the trigger – a filter that receives the type of the input in a few variables, <tag>, <classes> maybe something else. This could potentially be used without a trigger defined so you could use this to detect that you’re in Advanced Search and make it such that if you manually trigger auto complete even with nothing input it would open the relevant trigger.

Unfortunately hierarchical menus aren’t really possible with how things are written right now and I think it goes beyond the scope of this plugin.

It’s time to add a Roadmap/Future plans tiddler to my showcase and write down all those great ideas!

2 Likes

Is this plugin part of any library?

If not, can you please consider publishing in a library @Maurycy ?

A library makes the update process a bit easier, as you can receive notifications about available updates inside the TW.

2 Likes

Not yet! Busy doing something else:

  • Revamping the way the whole Showcase page looks
  • Adding a roadmap page
  • Updating older plugins to have settings in one place in Control Panel + add support for palette colors wherever required
  • Figure out something about plugin dependencies to see if I can have a base plugin containing some common things (like styles and JS functions)
  • Prepare the library
6 Likes