Despite of these complex todos, I need some help building some other features, if you are familiar with React, please help with these relatively easy tasks:
autocomplete [['s and {{'s linkable tiddlers result
autocomplete <$'s available widget and fields
autocomplete <<'s available macros
there is already a snippet autocomplete example in the code (/ menu), see develop.tid on the demo for more info.
allow editing widget and any block’s source code, and get preview at real time.
allow use tw’s default editor toolbar’s buttons and their keyboard shortcuts
optimization: use section splitter in section-editor to ensure only a small potion of text will onChange and rerender. And we can get start-end of section from section splitter, so replace the section of text onChange.
allow drag to reorder blocks
context menu when click on the drag handle
autocomplete [['s and {{'s linkable tiddlers result
autocomplete <$'s available widget and fields
autocomplete <<'s available macros
open context aware autocomplete using ctrl+space, show corresponding dropdown menu using prefix of the selection
replace codeblock with codemirror or monaco, so its prism highlight won’t need to bundle with plugin, which is big
@linonetwo I would love to help but I get a little lost.
I follow the above link and see DemoText
I click the edit button
I see a hybrid WYSIWYG with wikitex character’s visible and applied to the line in question
Understandable macros and widgets are not rendered and this not what I we WYSIWYG.
Don’t get me wrong this looks like great progress and a good idea, but I would not call it WYSIWYG perhaps a “format preview editor” or “Live [wikitext] Format editor”.
Other WYSIWYG editors have toolbar buttons that makes something take a format but not show the underlying code.
Do let me know If I have it wrong!
[Edited] I had it wrong see below
@khalfaniw I tried exporting just the Slate Write plugin from the official website, but I couldn’t type when I enabled the WYSIWYG mode. So I went to https://tw-cpl.netlify.app. It was a link somewhere in the Slate Write website. It’s a collection of plugins gathered by or created by the Chinese community and it was all in English for me. I love the built-in Github comments and reactions. I dragged and dropped the config (see Welcome!) and then I could install Slate Write directly from my TW file. It’s similar to the built-in plugin library.
I barely tested it, but I think Slate Write’s basic functions work well and that’s what matters to me.
However, there’s an option to insert a WYSIWYG 3x4 table, but I don’t see a table while in WYSIWYG mode. When I re-enable preview mode, I do see a table. But when I’m in wysiwyg mode I see the text in the table but they’re spaced very far apart, which makes it difficult to edit entries.
Thank you for making this wonderful plugin and TidGi. Slate Write has persuaded me to use TW more consistently since I’ve always disliked the writing experience. TidGi seems like a good way to use TW without opening it on a browser and using a browser extension to save (Timimi), which is not ideal for security or privacy. At the same time, it has more options than TiddlyDesktop.
Thanks for your comments, as a professional web developer, I surely have some thoughts on performance tweaks, like using virtualized technique. And table support is half done…
Please be patient and I think I will find time to continue this, as I’m personally using this plugin every day too!
hello linonetwo
I absolutely love this plugin, it’s awesome to just click in a tiddler and type without having to open edit mode! (i think there should be an option to enable this by default and turning it off for tiddlers rather than having to turn it on. but i believei can make that happen in my wiki by adding the field by default when creating a new tiddler)
Unfortunately I have one big issue - links don’t work.
It would be great if i could ctrl-click for example to open the tiddler the link points to. I don’t have much coding experience so i have no clue how difficult this would be, but this problem makes it so that when i want to click on one i either have to select the word(s) and open command-palette or disable the slate-write mode on the tiddler while i click and enable it again later, both are extra steps that make it unusable for a normal wiki experience.
Could you please look into this? i hope there is an easy solution