On Thursday, September 28, 2017 at 6:14:42 AM UTC+2, TonyM wrote:
>
> There was a click to edit feature in TWC where clicking in the content 
> would allow you to edit the content,
>

This behaviour was removed by design. For "casual" visitors of your page it 
created a very unexpected behaviour. eg: They wanted to "double-click mark 
content" to copy paste it. When the editor opened, they thought, they broke 
the internet / web page ;)
 

> but It would be really good if once you clicked at a point on the the 
> tiddler it would open for edit with the cursor placed in the text where you 
> clicked (or Double Clicked, Ctrl-Clicked).
>

The rendered HTML text has no knowledge where it came from eg: 

Some text

{{myText}}

may be rendered as 

Some text

Some more text

So what should clicking Some more text, do now? ... 

Either open the tiddler named: myText or edit the tiddler which is actually 
open? ... Whatever we implement will be wrong. ... 

So it'll need to be adjustable or ctrl-Dbl-Click vs Alt-Dbl-Click .... or 
what ever. 

... BUT ... 

The bigger problem is. Some more text  doesn't know, that it belongs to myText 
tiddler. 
The possibility of transclusions, lists and so on, makes it *really hard* 
to calculate the position in the source  text, based on the rendered cursor 
position.

"really hard" as in: 


   - We need to extend the functionality of the "wikitext parser", that it 
   stores source positions of every element in TWs internal structure: the 
   "parse-tree". 
   - The parse-tree is converted into the widget-tree, which also needs to 
   deal with this new info now. ... 
   - The renderer, which uses the widget-tree needs to write this info into 
   the html-output.
   - The navigator-widget finally has to deal with the new "double clicks" 
   to open the corresponding tiddler + selecting the right position in the 
   source code. 

Which basically means "rewriting" most of the parsing -> rendering 
pipeline. .. 

IMO it still is an interesting idea, since we could make some other 
improvements along the way. Eg store the tiddler content in a different 
format and *partially *convert TW syntax -> markdown -> TW syntax.  .... 

I have recently created a Tag that once added to a code tiddler Displays 
> text un-wikified in view template at bottom of tiddlers tagged ShowCode. 
> The same would be good for developing if we could click into that to edit 
> and move the cursor. Alternatively we could have a view tiddler toolbar 
> item (to show text/code) un processed we could click into.
>
> I imagine what I dream of is difficult or impossible but I think it would 
> make a big difference to tiddlywiki usability.
>
>
>    - What do you think?
>
> It's doable and has some advantages ... It just isn't easy ;)


>    - Any ideas how?
>
> See above.
 
have fun!
mario

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/74964ee3-17dc-41e9-aacc-9f7180ef8ce7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to