Danielo has a double-click-to-edit plugin. I tend to leave it off because
so often I want to double-click inside a field to select everything. I
never released how often I did this until I installed the plugin.
The somewhat obvious solution to the "click to edit at cursor" problem
would be to do everything the "TW5 way" (tm). That is, make sure your text
never exceeds a few paragraphs. That way you can always quickly get back to
your text.
I can imagine making an interface which displays a series of lines as input
fields (each line would represent either a tiddler or a tiddler field).
Small buttons would let you work on a line, insert new lines, split a line.
This would provide cursor-at-line resolution. All of your text except the
working line would be rendered for viewing so you'd have an almost wysiwyg
experience.
Mark
On Thursday, September 28, 2017 at 8:07:27 AM UTC-7, PMario wrote:
>
> 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/43faa7e3-8387-4585-8336-6cd9fcb57661%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.