[tiddlypouch/NoteSelf] focus gets stolen from text edit field during writing by autosafe

244 views
Skip to first unread message

christof buerger

unread,
Jan 26, 2017, 3:09:00 AM1/26/17
to TiddlyWiki
Good morning,
I use since some time tiddlywiki with the tiddlypouch plugin (NoteSelf). And I am really excited about the functionality of TW and the posibility to synchronize to a backend database.
There is just one drawback which is: while editing text in the tiddler body text field periodically the focus gets stolen and set to the tiddly name field and having marked it. During fluent text typing this leads to the fact that regularily you delete the header and have to restore it and reset the cursor to the end of the tiddler text.
Any Idea how this could be solved?

Best Regards
Christof

Danielo Rodríguez

unread,
Jan 26, 2017, 9:21:34 AM1/26/17
to TiddlyWiki
Hello Christof,

First of all, thank you for trying Noteself. You can reference it directly,no need to specify the underlying tiddlypouch plugin.

I'm also experiencing this problem. I'm not sure of the root cause,but it is definetively annoying. As the creator of NoteSelf this makes me very sad and ashamed . In my case I only experienced this on mobile browsers. Does this happen on your desktop browser or just on mobile ?

I don't know if it is a problem specific to Noteself or if it is a bug on tiddlywiki that only gets evidenced on Noteself.

Thanks for reporting it. If anyone has an idea about the root cause I will be very grateful

Regards

Arlen Beiler

unread,
Jan 26, 2017, 10:11:04 AM1/26/17
to TiddlyWiki
I just started using noteself and I've been running into the same problem. Yes, it does seem to do it on desktop in chrome. Here is some log output.

I was editing New Tiddler. I was just typing away and suddenly this shows up. I'm starting to wonder if this happens every so often. It could be related to the skinny tiddler mechanism, which isn't used in the default tiddlyweb server.

syncer-browser: Retrieving skinny tiddler list
syncer-browser: Dispatching 'load' task: $:/SiteTitle
syncer-browser: Dispatching 'load' task: $:/SiteSubtitle
syncer-browser: Dispatching 'load' task: $:/DefaultTiddlers
syncer-browser: Dispatching 'load' task: $:/view
syncer-browser: Dispatching 'load' task: $:/themes/tiddlywiki/vanilla/settings/backgroundimage
syncer-browser: Dispatching 'load' task: $:/themes/tiddlywiki/vanilla/options/stickytitles
syncer-browser: Dispatching 'load' task: $:/themes/tiddlywiki/vanilla/options/sidebarlayout
syncer-browser: Dispatching 'load' task: $:/themes/tiddlywiki/vanilla/metrics/sidebarwidth
syncer-browser: Dispatching 'load' task: $:/mark/Template for Viewing Snapshots
syncer-browser: Dispatching 'load' task: $:/core/ui/SideBarLists
syncer-browser: Dispatching 'load' task: $:/core/ui/PageTemplate/sidebar
syncer-browser: Dispatching 'load' task: $:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar
syncer-browser: Dispatching 'load' task: $:/config/Toolbar/ButtonClass
syncer-browser: Dispatching 'load' task: $:/config/SyncFilter
syncer-browser: Dispatching 'load' task: $:/config/PageControlButtons/Visibility/$:/plugins/danielo515/tiddlypouch/ui/sync-flag
syncer-browser: Dispatching 'load' task: $:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/save-wiki
syncer-browser: Dispatching 'load' task: $:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions
syncer-browser: Dispatching 'load' task: $:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home
syncer-browser: Dispatching 'load' task: $:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/control-panel
syncer-browser: Dispatching 'load' task: $:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search
syncer-browser: Dispatching 'load' task: $:/config/Navigation/UpdateAddressBar
syncer-browser: Dispatching 'load' task: $:/config/BitmapEditor/LineWidth
syncer-browser: Dispatching 'load' task: $:/config/BitmapEditor/Colour
syncer-browser: Dispatching 'load' task: $:/config/AnimationDuration
syncer-browser: Dispatching 'load' task: $:/arlen/macros/tagmenu
syncer-browser: Dispatching 'load' task: $:/arlen/macros/tagging
syncer-browser: Dispatching 'load' task: $:/arlen/Styles
syncer-browser: Dispatching 'load' task: $:/arlen/Select Story Layout
syncer-browser: Dispatching 'load' task: $:/arlen/PageControls
syncer-browser: Dispatching 'load' task: $:/arlen/MainMenuButton
syncer-browser: Dispatching 'load' task: $:/arlen/BitmapEditorPallete
syncer-browser: Dispatching 'load' task: $:/StoryList
syncer-browser: Dispatching 'load' task: GettingStarted
syncer-browser: Dispatching 'save' task: Draft of 'New Tiddler'


--
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 tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/358c10a2-4633-44e2-b205-6d5a3ce6ab3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arlen Beiler

unread,
Jan 26, 2017, 10:30:48 AM1/26/17
to TiddlyWiki
Yup, I think that's when it happens. And it happens whether you're typing or not. And as you can see, the draft is not in the list of loaded tiddlers either. It's kind of strange though. I have a lot more tiddlers in my wiki. ... Actually, if I open some more, then they show up too.

Arlen Beiler

unread,
Jan 26, 2017, 10:48:06 AM1/26/17
to TiddlyWiki
Yes, the list of skinny tiddlers has `revision: undefined`. I think that might be the problem. The revision for the tiddler already there looks like a regular couchdb revision string.

Arlen Beiler

unread,
Jan 26, 2017, 10:49:30 AM1/26/17
to TiddlyWiki
That's in $:/core/modules/syncer.js where Syncer.prototype.syncFromServer calls this.syncadaptor.getSkinnyTiddlers. Sorry for all the emails. Hope that helps.

Danielo Rodríguez

unread,
Jan 26, 2017, 1:15:55 PM1/26/17
to TiddlyWiki
Thanks Arlen, I'll check it deeper.

Anyone that used Noteself before knows if this bug is new or if it was happening also on earlier versions ? I never noticed it before

christof buerger

unread,
Jan 26, 2017, 1:20:51 PM1/26/17
to TiddlyWiki
Hello Rodriguez,
dont be ashamed please!! I like Noteself very much and for sure somehow the problem will be found. Just wanted to answer to your question even if others reported in the meantime ... 
I experianced the behaviour on chrome mac os x desktop. ant too in firefox on mac os x desktop.

Best Regards
Christof

Brian Theado

unread,
Jan 26, 2017, 5:47:08 PM1/26/17
to tiddl...@googlegroups.com
Danielo,

When I played with noteself last fall I was able to duplicate that issue by having a shadow version of the edit template. Once I removed the shadow edit template the issue went away.

So the issue must be new since then. Maybe something the edit template depends on is getting periodically synced thereby causing a refresh.

Here is a link to my post where I mentioned that issue. There are more details there:

On Jan 26, 2017 1:15 PM, "Danielo Rodríguez" <rdan...@gmail.com> wrote:
Thanks Arlen, I'll check it deeper.

Anyone that used Noteself before knows if this bug is new or if it was happening also on earlier versions ? I never noticed it before
--
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 tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Arlen Beiler

unread,
Jan 26, 2017, 6:00:36 PM1/26/17
to TiddlyWiki
It looks like it is the string "t["revision"]=e["_rev"];" in $:/plugins/danielo515/tiddlypouch/converters/tiddler.

it should probably be something like 

Might be useful if your code was at least somewhat prettified :)

It should be if(!t.revision && e._rev) t["revision"] = e["_rev"];

Danielo Rodríguez

unread,
Jan 28, 2017, 1:47:37 PM1/28/17
to TiddlyWiki

Hello everyone,

Thank you very much for all of your reports.

dont be ashamed please!! I like Noteself very much and for sure somehow the problem will be found. 

I'm glad that you like Noteself. Don't take my words too literally, I am sometimes a bit melodramatic.


When I played with noteself last fall I was able to duplicate that issue by having a shadow version of the edit template. Once I removed the shadow edit template the issue went away.
So the issue must be new since then. Maybe something the edit template depends on is getting periodically synced thereby causing a refresh.

Dear Brian, thank you for your report. However I'm a bit confused about what your assertions. You had this issue before, and you solved it by removing that shadow version of the edit template, but after that the problem appeared again ? Could you can clarify this point ?

So the issue must be new since then. Maybe something the edit template depends on is getting periodically synced thereby causing a refresh

This should be definitively the problem, but I was unable to reproduce it.

Might be useful if your code was at least somewhat prettified :)

Dear Arlen, you are looking at the minified code ;-) it is that way to save download size. 

I'll publish a non-minified version if you are willing to help me debugging.

To the overall audience that it's trying to help me:

I'm trying to reproduce this issue, and I'm not having much luck. I have one notebook affected by this problem, but the new ones that I'm creating are not affected. I'm trying to add the tiddlers of the affected notebook one by one to the newly created one, but I'm not having much luck. If anyone with better analysis capabilities wants to help me I will be very grateful.

Regards

Arlen Beiler

unread,
Jan 28, 2017, 7:14:30 PM1/28/17
to TiddlyWiki
Daniello, 
That would be great! Normally I use the chrome dev tools to step through what the different parts are doing, which enables me to isolate problems fairly rapidly compared to console.log or other methods.
-Arlen

--
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 tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Danielo Rodríguez

unread,
Jan 29, 2017, 5:35:33 AM1/29/17
to TiddlyWiki
Hello Arlen,

Thank you for your interest on helping me. I just uploaded an unminified version, please make sure to clear your cache if you still see the minified one.

Regards

Brian Theado

unread,
Jan 29, 2017, 1:53:15 PM1/29/17
to tiddl...@googlegroups.com
Danielo,

On Sat, Jan 28, 2017 at 1:47 PM, Danielo Rodríguez <rdan...@gmail.com> wrote:
>> When I played with noteself last fall I was able to duplicate that issue
>> by having a shadow version of the edit template. Once I removed the shadow
>> edit template the issue went away.
>> So the issue must be new since then. Maybe something the edit template
>> depends on is getting periodically synced thereby causing a refresh.
>
>
> Dear Brian, thank you for your report. However I'm a bit confused about what
> your assertions. You had this issue before, and you solved it by removing
> that shadow version of the edit template, but after that the problem
> appeared again ? Could you can clarify this point ?

After that the problem did not appear again, because I haven't used
the plugin since then.

>> So the issue must be new since then. Maybe something the edit template
>> depends on is getting periodically synced thereby causing a refresh
>
> This should be definitively the problem, but I was unable to reproduce it.

Ok. I was just sharing the information as one particular way you could
easily reproduce the issue, hoping it would help with the
troubleshooting. If the EditTemplate itself is not in the list of
tiddlers being synced (as it is not in Arlen's email in which he
shared his console output), then maybe it is a different tiddler. I'm
not sure how you can find out which tiddler is the one causing the
Edit Widget to refresh.

Brian

Arlen Beiler

unread,
Jan 29, 2017, 3:27:10 PM1/29/17
to TiddlyWiki
It was the $:/core tiddler. I think I found the problem already, but the unminified version will help make it clear. I post more details later.

--
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 tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Arlen Beiler

unread,
Feb 4, 2017, 9:06:56 AM2/4/17
to TiddlyWiki
Good Morning, Daniello,
My apologies for taking so long to get on this. I am going to open a GitHub issue, since the formatting will be easier than email.
Thanks,
-Arlen

Danielo Rodríguez

unread,
Feb 4, 2017, 1:44:07 PM2/4/17
to TiddlyWiki


Thanks to Arlen this issue has been fixed.
The new version is already online, and it should work without loosing the focus at all.

Thanks to all that made this possible and helped me to find the problem. To be honest, I didn't found the problem Arlen did, I just applied the patch. THANK YOU VERY MUCH Arlen!!

Arlen Beiler

unread,
Feb 4, 2017, 10:49:53 PM2/4/17
to TiddlyWiki
You're welcome. I am very delighted as well and happily used this for an entire afternoon without a single problem. Very grateful to you as well. :)

--
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 tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
Reply all
Reply to author
Forward
0 new messages