Hi everyone, I’m fairly new to TW, and wanted to use Markdown while having 
the ability to autocomplete links while creating a tiddler using the 
markdown format: [text](link).

I couldn’t find any reference on how to do this, so after a few trial & 
error, this approach 
<http://rasagy.in/wiki/#Autocomplete-links-for-markdown> worked out for me. 
Sharing it here for others like me who might come to the forum looking for 
tips.

*Issue:* With the official Markdown plugin, I lost the ability to get 
autocomplete for links (CTRL+L no longer works, no link button in the 
toolbar).

*Steps I followed:*

   - Added official Markdown plugin 
   
<https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/markdown>
 
   + edit-ComptText <http://snowgoon88.github.io/TW5-extendedit/>
   - 
   
   Set comptext as the editor for new markdown files by creating 
   $:/config/EditorTypeMappings/text/x-markdown and adding comptext as the 
   content. (Thanks to Saq’s comment in a previous thread 
   <https://groups.google.com/g/tiddlywiki/c/DF20RJc5gqk/m/wVYt3DqnBAAJ>)
   - 
   
   Edited the edit-CompText config 
   
<http://snowgoon88.github.io/TW5-extendedit/#%24%3A%2Fplugins%2Fsnowgoon88%2Fedit-comptext%2Fexamples>
 to 
   have the following template*: { "pattern": "[[", "filter": 
   "[all[tiddlers]!is[system]]", "start": "[](#", "end": ")", "startOffset" : 
   1 }
   
Now when I create a new markdown tiddler, typing [[ shows the autocomplete 
popup, adds it in markdown style: [](#tiddler-link) and places my cursor at 
the alias position.

You can just copy paste my config 
<http://rasagy.in/wiki/#%24%3A%2Fplugins%2Fsnowgoon88%2Fedit-comptext%2Fconfig> 
from 
my TW-instance if you’re not familiar with editing json files, or try it 
out there (it’s hosted via Github Pages).

Cheers,
--
Rasagy

-- 
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/386eb196-9746-434e-9427-b291330e47ben%40googlegroups.com.

Reply via email to