New CodeMirror 6 TiddlyWiki5 plugin

Hello @Yaisog

if you have example code like this, could you please paste it here that I can copy it?
I don’t want to type all this code, but I’d like to inspect it.

Thank you

Hello Simon,

In the last version (as well as previous ones):

  • when pasting (CTRL + V) text in text editor
  • or in text-input (such as advanced search inputs)
  • the text is pasted (==> expected behavior)
  • and an import dialog is triggered ($:/Import) with the proposal to import the text as text/plain and text/html (==> unexpected behavior)

Tested in TiddlyWiki v5.4.0-prerelease — a non-linear personal web notebook and another TiddlyWiki in version 5.3.8.

BR,

Eskha

Hi @BurningTreeC, of course. I wanted you to see the error markers, too, therefore the screenshot.

\function .shadow-data(field) [all[]] :map[<currentTiddler>shadowsource[]get[text]jsonextract[tiddlers],<currentTiddler>]

\function .check-prefix() [prefix[$:/core]] [prefix[$:/plugins]]

\procedure save-hash()
<$list filter="[is[shadow].check-prefix[]is[tiddler]]">
	<% if [<currentTiddler>.shadow-data[]sha256[]!match{!!checksum}] %>
		<$action-setfield $tiddler=<<currentTiddler>> checksum=<<condition>> $timestamp="no" />
	<% endif %>
</$list>
\end