Well, when I get to the point of trying to duplicate anything that 
Codemirror plugin does, I may quickly find myself very impressed by the 
plugin.

Like I often say lately, as it quickly becomes a favourite in various 
forms:  the opportunity to eat crow can open up for dining pleasure around 
any corner.

On Tuesday, May 11, 2021 at 9:49:09 PM UTC-3 Charlie Veniot wrote:

> Well, current plugin is meh.  I'm not particularly impressed.  
>
> Being no fan of javascript, I am very interested in the question:  how 
> would I construct a Tiddler Editor in TiddlyWiki with nothing but native 
> TiddlyWiki code + HTML + CSS ?
>
> Whatever it is, it must have code folding.  I haven't put much other 
> thought regarding requirements.
>
> On Tuesday, May 11, 2021 at 9:30:51 PM UTC-3 TW Tones wrote:
>
>> Got it,
>>
>> Codemirror is able to seperate lines, perhaps have a look there to see if 
>> there are some solutions.
>>
>> Best of luck
>> Tones
>>
>> On Wednesday, 12 May 2021 at 10:20:50 UTC+10 [email protected] wrote:
>>
>>> Yeah, but it isn't just about seeing the lines.  It is about being, 
>>> eventually, able to edit/delete/add/move lines.
>>>
>>> On Tuesday, May 11, 2021 at 9:06:40 PM UTC-3 TW Tones wrote:
>>>
>>>> Charlie,
>>>>
>>>> Try this on tiddlywiki.com in a new tiddler. It extracts lines from 
>>>> HelloThere and seperates them with a line.
>>>>
>>>> <$list filter="[[HelloThere]get[text]splitregexp[\n]]" 
>>>> variable=line-content >
>>>> <<line-content>><hr>
>>>> </$list>
>>>>
>>>> Tones
>>>>
>>>> On Tuesday, 11 May 2021 at 22:58:16 UTC+10 [email protected] wrote:
>>>>
>>>>> I couldn't get \n working, so I gave up.  Thanks!
>>>>>
>>>>> On Tuesday, May 11, 2021 at 12:55:33 AM UTC-3 TW Tones wrote:
>>>>>
>>>>>> Cj
>>>>>>
>>>>>> Remember its possible to do this [[some 
>>>>>> tiddler]get[text]splitregexp[\n]] to separate the lines.
>>>>>>
>>>>>> Rather than split<newLine>
>>>>>>
>>>>>> Tones
>>>>>>
>>>>>> On Tuesday, 11 May 2021 at 13:31:59 UTC+10 [email protected] wrote:
>>>>>>
>>>>>>> Just scratching a coding itch.
>>>>>>>
>>>>>>> Modify the code in the button, changing the "Some Tiddler" instances 
>>>>>>> to an existing tiddler in your TiddlyWiki.  (I've been playing with 
>>>>>>> TiddlyWiki.com for the giggles.)
>>>>>>>
>>>>>>> Put this code in some tiddler and save the tiddler.  Then, press the 
>>>>>>> button, and take a look at the new tiddler named the same as this one, 
>>>>>>> but 
>>>>>>> with the added suffix " Data".
>>>>>>>
>>>>>>> <$button>
>>>>>>> <$vars newLine="
>>>>>>> " >
>>>>>>> <$vars nCount={{{ [[Some Tiddler]get[text]split<newLine>count[]] }}}
>>>>>>>             thisTiddler=<<currentTiddler>>>
>>>>>>> <$list variable="line-num" filter="[range<nCount>]">
>>>>>>> <$action-setfield $tiddler={{{ [<thisTiddler>addsuffix[ Data]] }}} 
>>>>>>> $index={{{ [<line-num>addprefix[line]] }}}, $value={{{ [[Some 
>>>>>>> Tiddler]get[text]split<newLine>nth<line-num>] }}}/>
>>>>>>> </$list>
>>>>>>> </$vars>
>>>>>>> </$vars>
>>>>>>> Click me!
>>>>>>> </$button>
>>>>>>>
>>>>>>> Why code that?  I'm just got this festering thought: how would I go 
>>>>>>> about creating an alternative tiddler editor with "code folding", using 
>>>>>>> only TiddlyWiki?
>>>>>>>
>>>>>>> Well, I think it starts with first finding a way to split a tiddler 
>>>>>>> into its individual lines.
>>>>>>>
>>>>>>> Just an exercise for the $hit$ and the giggle$, possibly coming to a 
>>>>>>> fiery end  when I hit the wall ...
>>>>>>>
>>>>>>

-- 
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/a1653ef1-ed4e-420a-b27e-b3fd21c0521dn%40googlegroups.com.

Reply via email to