jokroese / tiddlyroam

Your open source external brain
https://tiddlyroam.org
BSD 2-Clause "Simplified" License
563 stars 29 forks source link

TiddlyRoam Codemirror plugin #13

Open ConstantinosM opened 4 years ago

ConstantinosM commented 4 years ago

Hi Joe,

Thank you so much for TiddlyRoam! It's a great tool! My question might be naive but I couldn't find any information online. Codemirror plugin seems not working with TiddlyRoam. The only information I managed to found was that the editors (TiddlyWiki vs TiddlyRoam) are different (?). Could you please let me know if there is any way to enable the Codemirror plugin with TiddlyRoam?

jokroese commented 4 years ago

Hi @ConstantinosM, glad you're enjoying it!

Can you give me an example of something that you want to do with Codemirror? The plugin loads fine in TiddlyRoam. I'm not familiar with Codemirror so it would be helpful to know which features you are expecting from the plugin so that I can help you enable them in TiddlyRoam.

ConstantinosM commented 4 years ago

Thank you @joekroese for your response! From the CodeMirror plugin webpage, you can see some examples in editing mode. Indeed, when I installed the plugins i did not receive any errors. However when I am in editing mode I cannot use CTRL+F to search for a word in the text, there is no current line highlight, and no bracket auto-completion as in the CodeMirror Demo (there, I could do all these stuff). I also installed the Sub-Lime theme and enabled it in the Control Panel/Settings as indicated but I did not see any change. I am using TiddlyDesktop by the way but I tried my html file also in Firefox.

There is another plugin that I also installed Bookmarks without a problem but seems that it works partially (no tag filtering). I am quite new to TiddlyWiki and I am wondering if plugins are getting overriden ( if there are conflicts) without indication of an error, but they exhibit partial functioning (I did not want to create a "monster" full of plugins that seem to be installed properly but not working).

ConstantinosM commented 4 years ago

Please ignore my comment about the second plugin: Bookmarks. I managed to make it to work, there was no issue from TiddlyRoam's side regarding that plugin.

ConstantinosM commented 4 years ago

Any updates on this one? Shall I give up on using Code Mirror with TiddlyRoam?

jokroese commented 4 years ago

Hey @ConstantinosM! I haven't had much time for tiddlyroam the last few weeks. I had a little look when you first raised the issue but couldn't figure it out.

Finally got round to doing an overhaul of how tiddlyroam is set up and I've got the codemirror plugin working.

Screenshot 2020-06-04 at 23 30 00

Hopefully should be pushing the code over the next few days.

ConstantinosM commented 4 years ago

WoW :O! Awesome!That's great @joekroese! Does it work only by specifying the type of tiddly as markdown? I noticed that I am able to use it only in markdown mode but links and Latex plugin (as an example) do not work at the moment. I guess your code will make it fully functional :)

Honestly, Tiddlyroam is a life changing tool for me and thank you for still working on this and providing it freely!

No rush! Please kindly let me know once you update your code, how i can update my tiddlyroam.html file (I havent forked it, just downloaded it).

Many Thanks!