Yakov,

I was wrong about the empty slice/section things. I am having a problem 
beyond my knowledge and need help.

After some tests I realized empty slices are not editable because (in the 
childNodes property of the parent) the *twve* cannot find the SPAN element 
created by <<tiddler>> macro to hold the empty slice.

Then I looked into the *invokeMacro* and config.macros.*tiddler.handler* 
functions of TW2.8.1 and realized that *with empty slice value the handler 
function was called but seems not executed (see below)*. I do not 
understand why such thing would happen. Do you have any idea?

-----------------------------------------------------------------
First, In the invokeMacro function, I added two lines of displayMessage() 
*before 
and after calling the handler function*

if(m==config.macros.tiddler)displayMessage(macro+' '+params);
m.handler(....);
if(m==config.macros.tiddler)displayMessage('done');

Secondly, in the config.macros.*tiddler.handler* function I added *at the 
very first line*
displayMessage('...handler working...');

With the following source and transcluded tiddlers
Source
version: 1.2.3.4.5.6
''Author:''            *<-------  This slice is empty*
Transcluded
|<<tiddler 'Source::version'>>|
<<tiddler 'Source::Author'>>
I see the following messages
tiddler 'Source::version'
...handler working...    *<-------  The first line of the handler function, 
as expected*
done
tiddler 'Source::Author'
done                           
*<-------  Seems the handler function returns without executing the codes!*
-----------------------------------------------------------------

On Friday, August 8, 2014 5:05:00 PM UTC+8, Vincent Yeh wrote:
>
> Hi Yakov,
>
> On Tuesday, August 5, 2014 12:34:54 AM UTC+8, Yakov wrote:
>>
>> Hi Vincent,
>>
>> the torrent of coolingness is increasing, as I can see :)
>>
>> Confirm fixing/improving:
>> - ctrl+left/right doesn't move list items anymore
>> - new symbols (moving r) are displayed well
>>
>>
> Great! Thanks.
>  
>
>> As for the partial transclusion, strange things began to happen.
>> * try to transclude into a tiddler a section from another tiddler, but 
>> make a mistake in the section name. For me,
>> ** the first saving (opening the tiddler in the view mode) made FF hang 
>> for some seconds and it suggested me twise to stop the scenario, and the 
>> stuff after the transclusion wasn't displayed
>> ** on the second opening (in view mode) the tiddler got displayed as 
>> empty (although in the edit mode I can see the whole text)
>> ** on the third one FF hanged hardly and I closed the tab after some 
>> tweaking/waiting (in fact, this usually takes place on the first or the 
>> second opening in the view mode
>> ** this is especially important as in inline-edit mode cursor changes the 
>> section name each time it gets inside the [[...##...]] expression, and 
>> previewer makes FF hang
>> ** you can try these tiddlers to get the picture:
>> t1
>> |s1||
>> t2
>> <<tiddler [[t1::s2]]>>
>>
>>
> Seems like either the *twve.core* or the *twve.extra* does not take care 
> of the "section not found" situation. That shall be fixed in the next 
> release.
>  
>
>> * editing of a slice inserted in a table like this:
>>   |...|<<tiddler [[someTiddler::someSlice]]>>|
>>   is not possible (only macro code can be edited, but this syntax is 
>> essential for usage with ForEachTiddlerPlugin)
>>
>
> I did not think of such a case, thanks for mentioning it. That should be 
> quick and shall be done in the next release as well.
>  
>
>> * editing of an empty transcluded slice is not possible (same thing: only 
>> macro code can be edited; this is true for sections as well; this is also 
>> important for FETP)
>>
>
> Empty slices, that's interesting to me. In principle there should be no 
> difficulties doing that with the current codes. You'll have it.
>  
>
>>
>> * consider the following two tiddlers:
>> t1
>> |sl1|slice text|
>> !sec1
>> section text
>> t2
>> <<tiddler [[t1##sec1]]>>
>> <<tiddler [[t1::sl1]]>>
>> if I edit slice of t1 inside t2, on refreshing the <<tiddler 
>> [[t1##sec1]]>> unexpectedly starts to show the whole tiddler instead of 
>> just the section
>>
>>
> Hmm, I thought I had taken care of such cases already...
>  
>
>> * simple editing of slices with works, for both latin and international 
>> slice names (the latter is aplicable when ExtendedSlicesPlugin is installed)
>>
>> About text blocks: now a text like
>> some words {{{some code}}} some words
>> is splitted into 3 blocks (so there's no possibility to click somewhere 
>> to get the whole thing to edit). This will be ok, if there's a possibility 
>> to jump from block to block using keys; otherwise it's rather annoying.
>>
>
> Right, and that's what I am working on. My plan is to eventually get rid 
> of (well, just visually) the editbox and make it "feel like normal text 
> editing", as smooth as possible.
>  
>
>>
>> Regarding jQuery.. as far as I know, it wasn't included in TW5 by intent. 
>> The simplest solution, I guess, is to create a plugin with jQuery code 
>> inside and add some sort of Require directive to twve plugins (I don't 
>> know how the require thing is defined in TW5) -- or include jQuery directly 
>> to the twve.core. On the other hand, removing jQuery can seriously improve 
>> performance, as far as I know..
>>
>
> Thanks for the info and hint. I guess I will keep removing jQuery 
> dependencies from the plugins for migrating to TW5.
>
> Thanks a lot for this helping reply.
> Have Fun!
> Vincent
>
>
>> Best regards,
>> Yakov.
>>
>> воскресенье, 3 августа 2014 г., 12:12:48 UTC+4 пользователь Vincent Yeh 
>> написал:
>>
>> Release of ''twve'' v3.1.0.
>>
>> *Major changes:*
>>
>>    1. Started removing jQuery dependencies to migrate to TW5.
>>       - I don't seem to find a version of jQuery embeded in TW5 as there 
>>       is in TWC, that will keep *twve* from going to TW5 because *twve* 
>>       relies heavily on jQuery. Therefore I started to remove 
>> jQuery-dependencies 
>>       from *twve*, which turned out to be quite some work that shall 
>>       take a long while. I am wondering: Is there a way to carry jQuery 
>>       in TW5?
>>    2. Supports view mode editing of *transcluded slices*.
>>
>> For more details please see Release Note 
>> <http://twve.tiddlyspot.com/#%5B%5BRelease%20Note%20v3.1.0%5D%5D>.
>>
>> Have Fun!
>> Vincent
>>
>> On Friday, July 25, 2014 9:52:27 AM UTC+8, Vincent Yeh wrote:
>>
>> Hi Yakov,
>>
>> Thanks. If that's just my browser it would be no problem at all.
>> The Ctrl-left/right issue is fixed in my current snapshot, will be gone 
>> in the next release.
>>
>> I am finding time to work on slices recently, hope to get it done in a 
>> week or so (busy schedule now)
>>
>> ...
>
>

-- 
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/d/optout.

Reply via email to