[tw5] Re: (re-)Presenting: LeftBar - a menu type sidebar, on the left

2018-08-28 Thread Evan Zoss
Just to elaborate bit more.. Issue is on reload of the wiki the 
$:/state/LeftBar is removed, but if the bar was previously opened, then the 
theme storyleft and storyright retain their modified values, which cause 
future open of the bar to result in some recursive transclusion error on 
those tiddlers.

I resolved it by modifying to use the existence of 
$:/plugins/TWaddle/LeftBar/temp as the indicator of if the bar is open or 
closed, as it persists across reload.  Here's how I changed the 
LeftBar/Toggle:

\define leftbar-content()

{{$:/plugins/TWaddle/LeftBar/Menu}}

\end

<$list filter="[title[$:/plugins/TWaddle/LeftBar/temp]!is[tiddler]]" >
<$button set="$:/state/LeftBar" setTo="show" class="tc-btn-invisible 
tc-image-button leftbar-toggle">
{{$:/core/images/menu-button}}
<$action-setfield $tiddler="$:/plugins/TWaddle/LeftBar/temp"
$field="storyleft"
$value={{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}/>
<$action-setfield $tiddler="$:/plugins/TWaddle/LeftBar/temp" 
$field="storyright"
$value={{$:/themes/tiddlywiki/vanilla/metrics/storyright}}/>
<$action-setfield 
$tiddler="$:/themes/tiddlywiki/vanilla/metrics/storyleft" 
text="/*LeftBar*/ calc({{$:/plugins/TWaddle/LeftBar/Stylesheet!!width}} + 
{{$:/plugins/TWaddle/LeftBar/temp!!storyleft}})" />
<$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/storyright"
text="/*LeftBar*/ calc({{$:/plugins/TWaddle/LeftBar/temp!!storyright}} + 
{{$:/themes/tiddlywiki/vanilla/metrics/storyleft}})"/>



<$list filter="[title[$:/plugins/TWaddle/LeftBar/temp]is[tiddler]]" >
<$button set="$:/state/LeftBar" setTo="hide" class="tc-btn-invisible 
tc-image-button leftbar-toggle">
{{$:/core/images/chevron-left}}
<$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/storyleft" 
text={{$:/plugins/TWaddle/LeftBar/temp!!storyleft}} />
<$action-setfield 
$tiddler="$:/themes/tiddlywiki/vanilla/metrics/storyright" 
text={{$:/plugins/TWaddle/LeftBar/temp!!storyright}} />
<$action-deletetiddler $tiddler="$:/plugins/TWaddle/LeftBar/temp"/>



<$list filter="[title[$:/plugins/TWaddle/LeftBar/temp]is[tiddler]]" >
<>

<$list filter="[title[$:/plugins/TWaddle/LeftBar/temp]!is[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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/587d438d-1b59-4233-a79f-487ff09db3ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: (re-)Presenting: LeftBar - a menu type sidebar, on the left

2018-08-27 Thread Evan Zoss
So I fixed my issue by removing the modified base TiddlyWiki settings for 
'Story left position' and 'Story right' that were changed (I just made them 
both 0px instead of the /* LeftBar */ function.
Now I also have the need to scroll the LeftBar as Mohammad mentioned, so 
would be good to get that goin too.  Anyways, lovin it, exactly what 
TiddlyWiki needed!

On Monday, August 27, 2018 at 12:40:54 PM UTC-5, Mat wrote:
>
> Evan (and Mohammed)
>
> I do intend to deal with this but I can't say when as I have a lot of 
> other things going on right now. It may be "comforting" to hear that I've 
> also hit some issues with it :-)
>
> <:-)
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/0417c91f-c99a-484a-8dc4-83278f791fad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: (re-)Presenting: LeftBar - a menu type sidebar, on the left

2018-08-27 Thread Evan Zoss
I love this!  Works great for what I needed (at first at least).
After refreshing my wiki, now the toggle mode doesn't shift over the 
content at all.. it just overlays on top of it (with transparent background 
even.. not really usable.
This is in Chrome.  Any idea ?

On Sunday, July 1, 2018 at 8:38:39 AM UTC-5, Mohammad wrote:
>
> Mat,
>  Is there anyway to disable the hover feature? Or restrict it to its icon 
> only?
> Most of the time when I want to resize the window by dragging the border, 
> it activated and cause some problem with that!
> /Mohammad
>
>
> On Friday, April 27, 2018 at 12:06:41 AM UTC+4:30, Mat wrote:
>>
>> LeftBar  has been updated. Major diff is 
>> to remove the supporting Toggle plugin (now deprecated) thanks to new 
>> checkbox functionality in 5.1.16.
>>
>> <:-)
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/40cd8a56-11c4-4c57-876b-ec6752ee8101%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.