TW5 And Double Click to Edit

157 views
Skip to first unread message

huntsfromshadow

unread,
Feb 1, 2015, 11:25:51 AM2/1/15
to tiddly...@googlegroups.com
Is their any way to bring back double click to edit in TW5?

I want to move towards TW5 for a new project and while I really
enjoy the added functionality I would really like to have double click back.

Thanks

Danielo Rodríguez

unread,
Feb 1, 2015, 1:22:54 PM2/1/15
to tiddly...@googlegroups.com
This have been discussed several times, and I personally think that is an horrible idea. Anyway this could be provided with some plugin that adds some event listeners.

Tobias Beer

unread,
Feb 1, 2015, 2:59:53 PM2/1/15
to tiddly...@googlegroups.com
I think I said it before, it's probably what I used most in TWc.
Selecting text via double-click... I never do, unless in an editor.

Best wishes, Tobias. 

huntsfromshadow

unread,
Feb 2, 2015, 10:51:10 AM2/2/15
to tiddly...@googlegroups.com
Okay I'm looking at trying to build a plugin to do it,
but I'll admit I'm having a hard time figuring out how to do it.

Can anyone point me at a way to hook into a tiddler opening or opened event?
Figured I'd just put a double click handler on the tiddler body.

Also is their any other sort of api documentation rather than http://tiddlywiki.com/dev/index.html

Thanks

Tobias Beer

unread,
Feb 2, 2015, 1:45:21 PM2/2/15
to tiddly...@googlegroups.com
Hi,
 
Okay I'm looking at trying to build a plugin to do it,
but I'll admit I'm having a hard time figuring out how to do it.

Understandably... atm it takes some time to dive into the inner workings of tw, i.e. "the core". 

Can anyone point me at a way to hook into a tiddler opening or opened event?

The thing is, the procedure is not as specifically encapsulated as one might think.
Compared to TWC, there isn't quite a process to hook into, no story.displayTiddler() to hijack.
 
Figured I'd just put a double click handler on the tiddler body.

So, the components that end up creating a tiddler are generic.
There is no underlying code that truly knows of "a tiddler in the story".

The code rather creates widgets, e.g. lists, transclusions, etc...
where the end result is a tiddler in the story
...but that's just one of the ways these things are used.

How to hook into all that is a good question.

There should possibly be another widget,
something equivalent to the link-catcher widget
Perhaps some MouseEventWidget which eventually traps mouse events and, in this case, wraps...
...so as to register that double-click event. This, of course, meanse that any such widget contained within another one of that kind would fire first and need an option to specify as to wether or not the mouse event is to bubble up the dom, whichever click or move etc. it recognizes.

Also is their any other sort of api documentation rather than http://tiddlywiki.com/dev/index.html

Unfortunately, aside from the code, there currently isn't.
However, Jim and I are currently discussing how to best automate all that:


This would be tremendously important to help the likes of you, well, all uf us really,
to find core stuff and their relations ...and have a full-blown api documentation.

Best wishes, Tobias.

Marc J. Cawood

unread,
Jan 17, 2019, 2:20:50 AM1/17/19
to TiddlyWikiDev
Was double-click to edit ever implemented as a plugin? I've just upgraded to TW5 and miss it terribly.

Ton Gerner

unread,
Jan 17, 2019, 6:15:30 AM1/17/19
to TiddlyWikiDev
Hi Marc,


On Thursday, January 17, 2019 at 8:20:50 AM UTC+1, Marc J. Cawood wrote:
Was double-click to edit ever implemented as a plugin? I've just upgraded to TW5 and miss it terribly.

Diego Mesa

unread,
Jan 17, 2019, 9:59:16 AM1/17/19
to TiddlyWikiDev
Just a quick note - locally I edited the plugin to have triple-click-to-edit and have found it works much better (for me), preventing accidental editing. 

TonyM

unread,
Jan 17, 2019, 5:17:31 PM1/17/19
to TiddlyWikiDev
Marc,

Keep in mind that the Edit Button is "click to edit" as well. Since the plugin Ton mentions works you are possibly happy. But it should be trivial to make click to edit operate on any other part of a tiddler in view mode. I can think that the space between the title and the tool bar at the top of the tiddler may be a nice place to allow click to edit. this should also work with folded tiddlers. I always found click to edit stopping me selecting text to copy in view mode.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages