[TW5] - Is there anaything like a 'tabs' macro?

228 views
Skip to first unread message

TonG

unread,
Sep 21, 2013, 7:05:59 AM9/21/13
to tiddl...@googlegroups.com
Hi all,

Looking through the docs of TW5, I couldn't find anything about a 'tabs' macro.
The TWc 'tabs' macro is used by me very often to publish information in a clear, easy accessible, way. I even mix horizontal and vertical tabs.
Two usecases:
1) My TWc documentation about (Windows) portable software https://www.dropbox.com/s/kkfhrabfnio38za/Portable_software_documentation.html
2) My TWc - written in Dutch - about the history of the district of Amsterdam I was born in: http://dl.dropboxusercontent.com/u/2638511/Amsterdam_1822-2009.html

Is there already anything in TW5 like a 'tabs' macro?

Cheers,

Ton

Tobias Beer

unread,
Sep 21, 2013, 10:49:08 AM9/21/13
to tiddl...@googlegroups.com
Înteresting, I have never seen so many nested tabs ;-)

This must sure be a handy tool for you...

I don't think you should try to use the current low level widget implementation for complex collections like yours with $button and $reveal widgetsBetter wait for full blown macro support and tab macros that work more like those you're used to, perhaps even simpler.

Otherwise, have a look at those sidebar shadow tiddlers in tw5 to see how it's currenty done... way too complex for your purposes.

Best wishes, Tobias.

TonG

unread,
Sep 21, 2013, 11:31:30 AM9/21/13
to tiddl...@googlegroups.com
Hi Tobias,

Thanks for your reply.
I just started to explore TW5. It has many possibilities but at the moment it is very 'technical' for an ordinary end user. I hope there will be soon some macros.
In the meantime I'am just trying to work with it and see how far I can go.

When you posted your VerticalTabs, way back in 2009, I thought it can be useful for me. And it is, as you could see in my second use case ;-).
For sure I am using TabEditPlugin. When 'publishing' my TW I have to switch it off (removing the systemConfig tag) otherwise it still opens tiddlers by double clicking.

Cheers,

Ton

Tobias Beer

unread,
Sep 21, 2013, 11:32:46 AM9/21/13
to tiddl...@googlegroups.com
Hi TonG,

This must sure be a handy tool for you...
 
I have added and reviewed the entry on @customize for it...

Same for DropDownMenuPlugin...
..added your wiki as an example, but perhaps it wont be there for long. ;-)

and DropTaggingMacro...

Cheers, Tobias.

Tobias Beer

unread,
Sep 21, 2013, 11:49:17 AM9/21/13
to tiddl...@googlegroups.com
Hi Ton,

When you posted your VerticalTabs, way back in 2009, I thought it can be useful for me. And it is, as you could see in my second use case ;-).
For sure I am using TabEditPlugin. When 'publishing' my TW I have to switch it off (removing the systemConfig tag) otherwise it still opens tiddlers by double clicking.

Nice to hear that you find it useful.

As for double-clicking, I might just fork it and turn editing off by default when in readOnly mode. I think the difference between being an editor and a viewer has only rarely been considered by plugin authors (that includes myself and things like TagSearchPlugin).

Best wishes, Tobias.

Jeremy Ruston

unread,
Sep 21, 2013, 11:51:29 AM9/21/13
to TiddlyWiki
There's no tabs macro yet, mainly because macros currently can only have fixed numbers of arguments.

Best wishes

Jeremy


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



--
Jeremy Ruston
mailto:jeremy...@gmail.com

TonG

unread,
Sep 21, 2013, 12:03:30 PM9/21/13
to tiddl...@googlegroups.com, jeremy...@gmail.com
Hi Jeremy,

I'll wait ;-)

Cheers,

Ton

Tobias Beer

unread,
Sep 21, 2013, 12:35:32 PM9/21/13
to tiddl...@googlegroups.com, jeremy...@gmail.com
Hi Jeremy,

There's no tabs macro yet, mainly because macros currently can only have fixed numbers of arguments.

Which would be fine considering how a macro could dissect a single argument and turn it into multiple parameters via something like readBracketedList. However, the macro would need to do some js magic. I think I actually prefer that over the old syntax, e.g.:

<<tabs "
tab1 'tab1 tip' tab1content
tab2 'tab2 tip' tab2content##foo
tab3 'tab3 tip' tab3content!!bar
">>

Although not being able to leverage (hidden) sections complicates things.

On the other hand, I have just created a TiddlySpace for Saq's InlineTabsPlugin as found in Ton's wiki and I think this syntax in the form of a $tabs widget is actually much more intuitive than any of the above.


Best wishes, Topias.

Jeremy Ruston

unread,
Sep 21, 2013, 12:42:12 PM9/21/13
to Tobias Beer, TiddlyWiki
Hi Tobias

Apropos of the inlinetabs example, we have an opportunity to define a wikitext syntax for tabs, too. For example:

__|Title|__
Some content to go in this tab
__|Title2|__
More content
____

The other thing I'm concerned with is to make sure that it's easy to create a set of tabs from a tiddler list. That's how we'll make the sidebar tabs configurable via drag and drop.

Best wishes

Jeremy


Tobias Beer

unread,
Sep 21, 2013, 1:22:59 PM9/21/13
to tiddl...@googlegroups.com, Tobias Beer, jeremy...@gmail.com
 
Apropos of the inlinetabs example, we have an opportunity to define a wikitext syntax for tabs, too. For example:

__|Title|__
Some content to go in this tab
__|Title2|__
More content
____
 

This looks really quite intuitive.

What may be missing is the state-identifier of the tabset. Perhaps that can be added after the last line?

____myTabSet

Considering how it will probably not be important for many, I think this should be optional, i.e. auto-generated.


Also, you could add optional tooltips using...

__|Title|Tooltip 2|__
Some content to go in this tab
__|Title2|Tooltip 2|__
More content
____myTabSet


The other thing I'm concerned with is to make sure that it's easy to create a set of tabs from a tiddler list. That's how we'll make the sidebar tabs configurable via drag and drop.

Sure, I guess one problem is to define where the tab titles in such a list come from. Perhaps you simply define it via some...
* prompt when you drag and drop a tiddler (link) onto the tabset prefilled with the tiddler name
* store the corresponding title in a field at the tab-tiddler using the tabset identifier, e.g. tabSetFoo_title='Bar Title'

- tobias

Tobias Beer

unread,
Sep 21, 2013, 1:31:29 PM9/21/13
to tiddl...@googlegroups.com, Tobias Beer, jeremy...@gmail.com
Also interesting for using background images, etc...

__|Title|Tooltip 2|CSS Class|__
Some content to go in this tab

- tobias

Ton Gerner

unread,
Sep 21, 2013, 2:02:27 PM9/21/13
to tiddl...@googlegroups.com
Hi Tobias,


On Saturday, September 21, 2013 5:49:17 PM UTC+2, Tobias Beer wrote:

As for double-clicking, I might just fork it and turn editing off by default when in readOnly mode. I think the difference between being an editor and a viewer has only rarely been considered by plugin authors (that includes myself and things like TagSearchPlugin).
 
If it is easy to do, then I appreciate it when you can do it. Otherwise I can live with it: now I have to tick a checkbox (ToggleTagPlugin) before publishing.

Cheers,

Ton
Reply all
Reply to author
Forward
0 new messages