Any updates on Dbl-Click to edit and ctrl+enter to save?

335 views
Skip to first unread message

@atomi

unread,
Aug 31, 2015, 3:40:17 PM8/31/15
to TiddlyWiki
I searched the forums here and could only find a post from 2013 saying these are being worked on and would be coming soon?

  double-click to edit <sniff!>
  Ctrl+Enter to save <weep!>
  Esc to cancel edit? <sniff>

Are these possible now on TiddlyWiki 5? I tried to find info but couldn't.

Danielo Rodríguez

unread,
Aug 31, 2015, 5:09:26 PM8/31/15
to TiddlyWiki
the last two shortcuts are already implemented.Have you tried with tw.com ?

@atomi

unread,
Aug 31, 2015, 10:56:27 PM8/31/15
to TiddlyWiki
Okay. I'll just add my +1 for the double click to edit. Thanks.

Matthew Lauber

unread,
Sep 1, 2015, 8:22:22 AM9/1/15
to TiddlyWiki
I'll go ahead and throw in my two cents.  I'd prefer if double click to edit was not on, or at least was configurable.  Mostly because I regularly use double click and triple click  to select text, a feature that's built into my browser (Chrome).  It would throw off my workflow if that feature worked everywhere else, but on on a tiddlywiki.

Danielo Rodríguez

unread,
Sep 1, 2015, 11:57:47 AM9/1/15
to TiddlyWiki


El martes, 1 de septiembre de 2015, 14:22:22 (UTC+2), Matthew Lauber escribió:
I'll go ahead and throw in my two cents.  I'd prefer if double click to edit was not on, or at least was configurable.  Mostly because I regularly use double click and triple click  to select text, a feature that's built into my browser (Chrome).  It would throw off my workflow if that feature worked everywhere else, but on on a tiddlywiki.

Every change will break someones workflow:


So, I think we should stick to standard which is double click to select.

Regards

 

Matthew DeAbreu

unread,
Sep 1, 2015, 12:43:37 PM9/1/15
to TiddlyWiki
I did enjoy being able to double click to edit in TWC, so I was a little saddened to find that it was missing from TW5. That being said I totally see the use in double clicking to select text. I think an option to enable it would be awesome.

Odder

unread,
Sep 1, 2015, 2:00:15 PM9/1/15
to tiddl...@googlegroups.com
I also have used many years the double click in TWC and now I miss it. If there were a option to disable the edit-double-clickall were satisfied. The ones which do not need it and on the other side the many users switching from TWC to TW5. They don't want to miss it - like me. It has saved me many meters Mouse route :-)

Danielo Rodríguez

unread,
Sep 2, 2015, 5:27:13 AM9/2/15
to TiddlyWiki
Ok,

Since a lot of people wants this, and TW is built by the community for the community and it should provide what community wants, here is a small plugin that can calm down your hunger for this feature. 


Yes, it is aplugin that adds the very requested double click to edit feature. Hope you enjoy it.

Diego Mesa

unread,
Dec 8, 2017, 5:45:51 PM12/8/17
to TiddlyWiki
Hey Danielo,

Thanks for this - just wondering if its simple to change this plugin for triple clicks?

Diego Mesa

unread,
Dec 8, 2017, 5:54:38 PM12/8/17
to TiddlyWiki
Hey all,

Just reporting back that I made the following changes and repackaged and it seems to work fine:

parent.addEventListener('click', function (event) { 
    if (event.detail === 3) {
        self.editTiddler.call(self,event);
    } 
});

I'm not sure how to make this plugin "configurable" yet

Sylvain Naudin

unread,
Sep 4, 2018, 12:56:39 PM9/4/18
to TiddlyWiki
Hi Diego,

This triple click is interesting. I didn't success to apply your modification (i've the red alert js error).

If someone could explain howto ?

Sylvain

Diego Mesa

unread,
Sep 4, 2018, 1:51:19 PM9/4/18
to TiddlyWiki
Hey Sylvain,

If you just navigate to and edit this tiddler: 

$:/plugins/danielo515/2click2edit/ClickListener.js

go to line 36 which reads: 

parent.addEventListener("dblclick",function(event){self.editTiddler.call(self,event)});

REPLACE that line with the following text:

parent.addEventListener('click', function (event) { if (event.detail === 3) {self.editTiddler.call(self,event);} });

Save that tiddler, and save/reload your wiki - you now have triple click instead of double click. 

Best,
Diego

Sylvain Naudin

unread,
Sep 4, 2018, 3:49:16 PM9/4/18
to TiddlyWiki
Perfect ! Thanks a lot !

Cheers,
Reply all
Reply to author
Forward
0 new messages