Hi Stephan,

I am not familiar with the field things in TiddlyWiki, but I have some idea 
about what you mentioned. The 'focus and select' behavior, as far as my 
experiences are concerned, can be a choice of the programmer's. For 
example, in my plugin combination TWtid+TWted (available at 
http://twtable.tiddlyspace.com, or see discussion thread 
https://groups.google.com/forum/#!searchin/tiddlywiki/view$20mode$20edit/tiddlywiki/0FT6iBneYOk/8sPbbQee2jsJ)
 
I do explicitly select the text when setting focus to the edit box.

As for what you want to do, I don't know about the template things, but 
just for the editing purposes my plugin combination offers view mode 
editing capabilities in the TiddlyWiki (classic). It's working in many 
cases for regular tiddler text (not sure for fields, though) and still 
under development. If what you want to do can be done with regular tiddler 
text, instead of fields, and don't mind using the classic version, you are 
welcome to try them out. The upside is that you don't memorize tricks or 
hard-to-remember syntax just to get it work. (No disrespect to all the nice 
people here but I really cannot remember those Klingon-like syntax.) The 
downsides are 1) they are plugins that needs installation, 2) they are 
quite large as plugins (both over 50KB in minimized versions), and 3) they 
are not working with TW5 yet.

For 1) that's the price to pay for not learning Klingon. For 2) I would 
rather leave it for now for my "function first, optimization later" 
strategy. For 3) I am (soon to be) spending time studying TW5 plugin 
mechanism, hopefully to figure a good way to migrate in the near future.

Have fun!
Vincent

On Wednesday, November 6, 2013 4:49:19 PM UTC+8, Stephan Hradek wrote:

> Hi Jeremy!
>
> As you already told me before Hangout #20, you know about this loose of 
> focus. Memorizing the field and refocussing after tiddler refresh won't 
> help, I fear. When a test input receives focus, usually the content gets 
> selected, if I'm not mistaken. So when you type a character, before the 
> next one, the text will be selected and the next character will delete that 
> selected part.
>
> My idea would be, at least for my use case, to not update anything until 
> the "done" button is pressed.
>
> I'd like to explore that idea but I have no clue about any JavaScript API 
> offered by TW5 or whether there is any. I need to know how to retrieve and 
> store the field values.
>
> I also like to know whether or not the change of a class in my posted 
> example can, for this case, be assumed safe? As long as the tiddler I'm 
> editing does not get refreshed, I don't see, at the moment, a problem.
>
> Another idea, how I thought I could achieve what I want, was something 
> like this: I need to create some Form Tiddler which defines the layout and 
> fields which are editable. This Form Tiddler then serves as the View and 
> Edit template at the same time. It should be possible to create a tiddler 
> with this Form Tiddler as its template. Clicking the EDIT button should 
> then simply offer to change the fields.
>
> I hope I could explain what I mean!?
>

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to