[tw5] Re: Show Tiddler content in tabs

2020-04-08 Thread TonyM
Mat

Your tabbed has a lot of potential. What if you had a field day called 
tab-delimiter and the view template executed the macro so you would not need 
the second tiddler?

I have being considering something similar but using html tags eg; sections 
each with their own id. Each tab would only display the named I'd. Perhaps 
driven by a tablist field containing the html classes or id's to display in 
each tab.

However to me the use of a separate tiddler for each tab is better as long as 
they are rename tollerent which is possible with a tiddler serial number.

Regards
Tony

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0e81982c-aaaf-43eb-ae22-74b7ccfe83d2%40googlegroups.com.


[tw5] Re: Show Tiddler content in tabs

2020-04-08 Thread TonyM
Mat

I think you could emulate what you propose in the view template and import 
variables of the pragma.

I have had similar thoughts repeatedly. 

Regards
Tony

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d5df9d74-038b-4bec-af27-aaabde98a96e%40googlegroups.com.


[tw5] Re: Show Tiddler content in tabs

2020-04-08 Thread Mohammad
That is true Mat! This is one solution!

On Wednesday, April 8, 2020 at 11:28:12 PM UTC+4:30, Mat wrote:
>
> Mohammad wrote:
>>
>> ... Now each tiddler with tabber tag ...
>>
>
> OK, I'm personally not very fond of using tags for something like this 
> because it leaves a visual artifact. Another route I didn't take was some 
> field but it just feels like a poor compromise that the user should have to 
> create a field (which, at that, consists of two parts). True, having to 
> type some pragma rule isn't all that elegant either but at least it stays 
> within the text field.
>

Yep, field has not that visual artifact! 

>
> This does make me realize something though: It would be neat with a 
> dedicated edittemplate field for all "settings" of the tiddler. I.e a field 
> where "tabber" and other commands are added. IMO that would actually be 
> more elegant than the current single line pragama rules that one is 
> supposed to type out at top of text field. This would make sense. In my 
> little world.
>
> As you can tell, these are just opinions ;-)
>
>
Cheers
Mohammad 

> <:-)
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/09adb121-bdba-4c94-9d88-746948614005%40googlegroups.com.


[tw5] Re: Show Tiddler content in tabs

2020-04-08 Thread Mat
Mohammad wrote:
>
> ... Now each tiddler with tabber tag ...
>

OK, I'm personally not very fond of using tags for something like this 
because it leaves a visual artifact. Another route I didn't take was some 
field but it just feels like a poor compromise that the user should have to 
create a field (which, at that, consists of two parts). True, having to 
type some pragma rule isn't all that elegant either but at least it stays 
within the text field.

This does make me realize something though: It would be neat with a 
dedicated edittemplate field for all "settings" of the tiddler. I.e a field 
where "tabber" and other commands are added. IMO that would actually be 
more elegant than the current single line pragama rules that one is 
supposed to type out at top of text field. This would make sense. In my 
little world.

As you can tell, these are just opinions ;-)

<:-)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/845258f4-3d12-477f-9d33-8b233caf40b2%40googlegroups.com.


[tw5] Re: Show Tiddler content in tabs

2020-04-08 Thread Mohammad
Hi Mat,

On Tuesday, April 7, 2020 at 10:18:26 PM UTC+4:30, Mat wrote:
>
> Mohammad wrote:
>>
>> Why not use a viewtemplate?
>>
>
> I'm not sure how to do that in a good way. Please feel free to mutilate or 
> improve my thingy. 
>

I have modified the original tabber as below and it works out of the box!


   1. The macro/tabber has got a new tag as $:/tags/ViewTemplate
   2. The below stylesheet tiddler was added
  1. text:[data-tags*="tabber"] .tc-tiddler-body { display:none; }
  2. tag: $:/tags/Stylesheet
   3. The tiddler SomeText has new tag tabber

That 's all. Now each tiddler with tabber tag which has several headings is 
displayed in tabs instead of normal text!

I extracted the above three tiddlers and attached the modified ones for 
quick test in https://tiddlywiki.com/prerelease/


 

>
>  
>
>> minor suggestion why not use \n for line break?
>>
>
> Minor suggestion but superior to my silly looking line breaks. Updated. 
> Thanks.
>
>
> Many TW newcomers request a small table of contents like Wikipedia! tabber 
>> can create
>> a small toc top right with a little modification in the current code!
>
>
> Isn't the wikipedia ToC typically a list of links rather than tabs? What 
> would show in the tabs? Again, do feel free to tweak around if you're onto 
> something.
>

Yep, you are right, sadly the TOC items are not linkable here! 

>
> <:-)
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8b1bd305-1b22-48ec-8b30-22466af49d4e%40googlegroups.com.


Mat's-Tabber-Idea.json
Description: application/json


[tw5] Re: Show Tiddler content in tabs

2020-04-08 Thread Mat
Saq Imtiaz wrote:
>
> Another potential approach for someone who wants to tinker, is to use a 
> reveal widget for each tab's contents, and tab buttons to switch between 
> them.
>

This is actually how I made http://tabber.tiddlyspot.com

<:-)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5aef6140-c442-4ebd-8b42-d3e23c7ae2f5%40googlegroups.com.


[tw5] Re: Show Tiddler content in tabs

2020-04-08 Thread Saq Imtiaz
Another potential approach for someone who wants to tinker, is to use a 
reveal widget for each tab's contents, and tab buttons to switch between 
them.
This is similar to how the core tabs macro is implemented except it 
transcludes tiddlers, instead of triggering reveal widgets.
I have done this in the past but sadly do not have an example to hand at 
this time.

Using the core tabs macro is a good starting point, if you adapt that you 
get a fair bit for free (including tab buttons styling)
https://tiddlywiki.com/#%24%3A%2Fcore%2Fmacros%2Ftabs

On Monday, April 6, 2020 at 10:35:24 PM UTC+2, passingby wrote:
>
> Hello all,
> Is it possible to show a tiddler's content in separate tabs within the 
> same tiddler like tiddler slices used to do in TWC?
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c2158767-69a3-4538-abb7-494b3ce36f86%40googlegroups.com.


[tw5] Re: Show Tiddler content in tabs

2020-04-07 Thread Mat
passingby wrote:
>
> ...But you solution is still great and usable straightaway.
>

Well, kinda usable straight away: It is designed to tabify for each 
identified "linebreak+headline" which means that if the *very *first thing 
in the tiddler is a headline (and no preceding linebreak) then that first 
instance will not be tabified properly. Of course, it is just a matter of 
inserting a linebreak before it. A neat thing with a pragma would be that 
it also automatically gives a linebreak after 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2885961c-81f2-4b24-9712-e2209d4037d1%40googlegroups.com.


[tw5] Re: Show Tiddler content in tabs

2020-04-07 Thread Mat
Mohammad wrote:
>
> Why not use a viewtemplate?
>

I'm not sure how to do that in a good way. Please feel free to mutilate or 
improve my thingy. 

 

> minor suggestion why not use \n for line break?
>

Minor suggestion but superior to my silly looking line breaks. Updated. 
Thanks.


Many TW newcomers request a small table of contents like Wikipedia! tabber 
> can create
> a small toc top right with a little modification in the current code!


Isn't the wikipedia ToC typically a list of links rather than tabs? What 
would show in the tabs? Again, do feel free to tweak around if you're onto 
something.

<:-)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/63c06132-6e15-4f8b-8c9b-7415ec1f8f96%40googlegroups.com.


[tw5] Re: Show Tiddler content in tabs

2020-04-07 Thread passingby
Hello Mat,

Thank you for the solution! 

If it is possible to keep everything in one tiddler it would be great. I 
just wanted to avoid the extra tiddlers. But you solution is still great 
and usable straightaway. Thank you! 

On Tuesday, April 7, 2020 at 2:39:08 AM UTC-7, Mat wrote:
>
> Presenting a half-baked:
>
> Tabber 
>
> It has a drawback that I hope can be solved: One - if not THE - point with 
> the concept is to avoid having to fiddle with multiple tiddlers. But the 
> current Tabber solution is a macro so to call the macro... you need another 
> tiddler. The solution would be to create a pragma, e.g "\tabber", that 
> makes the rest of the tiddler render using the macro.
>
> ...i.e how the heck is a pragma for this made? Help, anyone.
>
> <:-)
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4f7edd97-5356-46f8-bdd0-dc80a2e1b0d1%40googlegroups.com.


[tw5] Re: Show Tiddler content in tabs

2020-04-07 Thread passingby


On Monday, April 6, 2020 at 10:49:10 PM UTC-7, TonyM wrote:
>
> I just had an eye operation and have being told to keep looking towards 
> the floor for a week. Do there may be a delay unless I come up with a 
> method.
>

Oh! My best wishes for a speedy recovery! 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a028adb9-1f9a-4ea3-949d-b006a697bef9%40googlegroups.com.


[tw5] Re: Show Tiddler content in tabs

2020-04-07 Thread Mohammad
Mat,

Many TW newcomers request a small table of contents like Wikipedia! tabber 
can create
a small toc top right with a little modification in the current code!


--Mohammad

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c4d0f337-b0ed-42c0-99fe-1d388a3b4273%40googlegroups.com.


[tw5] Re: Show Tiddler content in tabs

2020-04-07 Thread Mohammad
Neat solution!

Why not use a viewtemplate?

minor suggestion why not use \n for line break?

-Mohammad

On Tuesday, April 7, 2020 at 2:09:08 PM UTC+4:30, Mat wrote:
>
> Presenting a half-baked:
>
> Tabber 
>
> It has a drawback that I hope can be solved: One - if not THE - point with 
> the concept is to avoid having to fiddle with multiple tiddlers. But the 
> current Tabber solution is a macro so to call the macro... you need another 
> tiddler. The solution would be to create a pragma, e.g "\tabber", that 
> makes the rest of the tiddler render using the macro.
>
> ...i.e how the heck is a pragma for this made? Help, anyone.
>
> <:-)
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/af6eccb8-a84e-4cd0-bbe3-8b1cbada530b%40googlegroups.com.


[tw5] Re: Show Tiddler content in tabs

2020-04-07 Thread Mat
Presenting a half-baked:

Tabber 

It has a drawback that I hope can be solved: One - if not THE - point with 
the concept is to avoid having to fiddle with multiple tiddlers. But the 
current Tabber solution is a macro so to call the macro... you need another 
tiddler. The solution would be to create a pragma, e.g "\tabber", that 
makes the rest of the tiddler render using the macro.

...i.e how the heck is a pragma for this made? Help, anyone.

<:-)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5eaaa954-3d62-4224-865b-fd8951fd8f1c%40googlegroups.com.


[tw5] Re: Show Tiddler content in tabs

2020-04-06 Thread TonyM
Passing

I am interested in similar methods and will try and share what I do. 

I just had an eye operation and have being told to keep looking towards the 
floor for a week. Do there may be a delay unless I come up with a method.

If using separate tiddlers consider using the current tiddler to tag them. You 
can then rename the tiddler and the tags will be updated. You can also use 
'<>' to reorder the tabs.

At least until I publish my tiddler serial number tool.

regards
Tony

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b1fa3e5a-b9b5-4422-a20e-c65b19ff4214%40googlegroups.com.


[tw5] Re: Show Tiddler content in tabs

2020-04-06 Thread passingby
Thanks Tony. I can use separate tiddlers if there is no tw specific way to 
do this. I am just trying to avoid creating too many tiddlers. My need was 
to put some text in one tab and some bulleted notes in the other tab for 
each topic I create a tiddler for.

On Monday, April 6, 2020 at 2:08:05 PM UTC-7, TonyM wrote:
>
> Passingby
>
> The exact mechanisium is not available in tw5 but there are plenty of 
> other ways to achieve the same results. Using the excise tool to create tab 
> tiddlers is breaking up the tiddler but the tabs macro is designed to use 
> separate tiddlers.
>
> Using css and html sections could possibly do what you want. However an 
> alternate tabs mechanisium may be the way to go. 
>
> I will look into this while we see if others have a suggestion.
>
> I understand your desire for such a feature and confident it can be found 
> in tw5.
>
> Regards
> Tony
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/89480f76-3ee1-449c-a927-56156653243b%40googlegroups.com.