Confused about CodeMirror plugins

98 views
Skip to first unread message

DemoniWaari

unread,
Mar 4, 2019, 5:00:48 AM3/4/19
to TiddlyWiki
So I noticed that the CodeMirror plugins would have an auto-completion feature which I would like to have. Unfortunately, I am lost on how to actually use it. In many releases the codemirror stuff is mentioned (e.g. 5.1.16 https://tiddlywiki.com/prerelease/static/Release%25205.1.16.html) but I do not know how to actually use them. Do I install the codemirror plugin https://tiddlywiki.com/plugins/tiddlywiki/codemirror/ first and then somehow add the auto-completion to it? I have zero idea how this works. When I installed the plugin it did not add a new tab in the control panel so I am unsure whether it actually is working or not. Nor was I able to find anywhere to download the auto-completion addon. Halp?

PMario

unread,
Mar 4, 2019, 5:45:09 AM3/4/19
to TiddlyWiki
Hi,
You may try this edition.
-m

Watt

unread,
Mar 4, 2019, 6:17:27 AM3/4/19
to TiddlyWiki
Hi demon

You're not alone in your code mirror confusion. This worked for me;

Go to Control panel, plugins, get more plugins, open library (while online), scroll down and you'll see the basic code mirror plugin, which I assume you've installed already, and saved and reloaded your wiki. If you haven't done that, do it first.

Below the base code mirror plugin in that library list are additional code mirror 'extras' such as autocomplete, close brackets, close tags, and search and replace. If you install those and any others needed, then save and reload you should see a new tab in your control panel. Look in Control panel, settings, Code Mirror.

Use Control-space to autocomplete when in edit mode.

Try this as a font-family if that field is blank and you don't like monospace;

-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"

That's the limit of my knowledge hope it helps you.

DemoniWaari

unread,
Mar 4, 2019, 6:32:31 AM3/4/19
to tiddl...@googlegroups.com
PERFECT! Thank you, it was not nearly as complicated as I thought.

Edit: Aw crap it only autocompletes within an editor instance instead of the entire wiki. I was hoping I could just do [[my then hit ctrl space and it would find a tiddler named [[myreallyawesometiddler]] and autocomplete that even if I have not used that link in the current editor instance. Well maybe I can find something else...

Watt

unread,
Mar 4, 2019, 6:51:08 AM3/4/19
to TiddlyWiki
Mohammad's 'SNR:search and replace in tiddlers' might do it retrospectively? I don't think autocomplete in the way you describe is currently available but they love a challenge on this forum. Maybe start a new thread?

DemoniWaari

unread,
Mar 4, 2019, 7:00:50 AM3/4/19
to TiddlyWiki
I need to check that out. Yeah it might not be but I'll take a gander around if there is a way. If not, then I might make a thread about it. Thanks.

PMario

unread,
Mar 4, 2019, 8:38:40 AM3/4/19
to TiddlyWiki
Hi,

If you open tiddlywiki.com, create a new tiddler and hit: <CTRL>-L  for create link, you can start typing Hello and you'll probably get what you want.

IMO no need for plugins.

-m

Watt

unread,
Mar 4, 2019, 8:55:04 AM3/4/19
to TiddlyWiki
Nice! Thanks PMario.

DemoniWaari

unread,
Mar 5, 2019, 2:38:53 AM3/5/19
to TiddlyWiki
Yeah that's true, I completely forgot about that. In the end it's maybe one more keystroke extra, I wonder how hard it would be to make it so that when I tab to try and select the tiddler I want it would skip the two buttons on the right of the text field and straight go to the list below? That's an extra two tabs I don't need!

-Petri
Reply all
Reply to author
Forward
0 new messages