collapse tiddler

209 views
Skip to first unread message

Rustem

unread,
May 11, 2015, 2:55:46 AM5/11/15
to tiddl...@googlegroups.com
I'd like to make a "Collapse" button for the ViewToolbar, that will hide the body, leaving only the tiddler title in the story. Does anyone already have it? What do you think is the best way to go about it?

Here's what I'm considering.

Possible ways:
* "Inject" a class in the current tiddler. (Don't know how, any pointers?)
* Wrap the current (every?) tiddler in a RevealWidget.
* Have a separate ViewTemplate, tag-based. Add/remove a "Collapsed" tag.

--R.

Rustem

unread,
May 12, 2015, 6:09:45 AM5/12/15
to tiddl...@googlegroups.com
Collapse tiddler (effectively, hide body) and other buttons added, see http://solar-flair.tiddlyspot.com/.

Måns

unread,
May 12, 2015, 7:10:52 AM5/12/15
to tiddl...@googlegroups.com
Hi Rustem

Very nice - congratulations and thank you very much for sharing your buttons :-)

I was wondering:

Collapse button:
Is it possible *not* to edit the modification field of the current tiddler when you collapse it?
Is it possible to make the height of the collapsed tiddler even smaller?

Limit text editor's heigth button:
Where/how do you set the limited height of the edit text frame?

Two columns layout button:
When we invoke the two columns layout - some of the tiddlers (those which have a table) seem to get wider that the others - and push them over the left menu.
How do we control this behaviour? Is it the table css which takes precedence over the story width?

Cheers Måns Mårtensson

Jeremy Ruston

unread,
May 12, 2015, 7:55:05 AM5/12/15
to TiddlyWiki
Hi Rustem

Well done, it's great to see you producing so much.

I'd really like to include your Solarised palette in the core, would you be happy to contribute it?

My other tiny request would be that I would be very grateful if you could set a site title and subtitle for your site so that I can more easily identify it in my open tabs.

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/20138f60-fa0b-46cd-a4a0-6b5d93d14cba%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



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

Rustem

unread,
May 12, 2015, 8:25:56 PM5/12/15
to tiddl...@googlegroups.com, jeremy...@gmail.com

Well done, it's great to see you producing so much.
Thank you!
 
I'd really like to include your Solarised palette in the core, would you be happy to contribute it?
Sure, I'll PM you some questions.
 
My other tiny request would be that I would be very grateful if you could set a site title and subtitle for your site so that I can more easily identify it in my open tabs.
Done.
 

Rustem

unread,
May 12, 2015, 9:23:30 PM5/12/15
to tiddl...@googlegroups.com

Very nice - congratulations and thank you very much for sharing your buttons :-)

Thank you, my pleasure. I did it just to show how it can be done, not as a finished product.

Collapse button:
Is it possible *not* to edit the modification field of the current tiddler when you collapse it?
Is it possible to make the height of the collapsed tiddler even smaller?

I'm just using what's already available now in TW, to hide the body of the tiddler. It's beyond my skill to answer these questions. If I do find out one day, I will modify my code.

Limit text editor's heigth button:
Where/how do you set the limited height of the edit text frame?

In "$:/_ra/config/Configurables" data tiddler.
 
Two columns layout button:
When we invoke the two columns layout - some of the tiddlers (those which have a table) seem to get wider that the others - and push them over the left menu.
How do we control this behaviour? Is it the table css which takes precedence over the story width?

It's the table content itself, not table css. Even with word wrapping, the table is still as wide as a sum of the widest word in each column. Maybe wrapping the table in another div would help? I'd have to try...
 

Danielo Rodríguez

unread,
May 13, 2015, 2:27:19 AM5/13/15
to tiddl...@googlegroups.com

It's the table content itself, not table css. Even with word wrapping, the table is still as wide as a sum of the widest word in each column. Maybe wrapping the table in another div would help? I'd have to try...

Do you move tiddler river into a table of two columns when that button is clicked?
What about moving the sidebar to the top? Like it happens when the window is not big enough. That way you will have the full width of the page.

I really like your ideas and your improvements to TW. Very well done!!

PMario

unread,
May 13, 2015, 2:56:03 AM5/13/15
to tiddl...@googlegroups.com
Hi Rustem,

Well done!

I like your icons, but I don't understand the "Limit editor height" combination. ..

 - For me the "pencil" means: If I click it something gets edited.
   - But in view mode, it does nothing. Even in edit mode, the behaviour is only visible if you have a long tiddler.
   - So imo those 2 are confusing.

 - The other icons are clear.
   - Tooltips would be nice.

have fun!
mario

Rustem

unread,
May 13, 2015, 3:10:54 AM5/13/15
to tiddl...@googlegroups.com
Mario,

You got the behaviour right, it's to keep the edit textarea within the viewport. Only has effect in edit mode, when the tiddler is long.
I agree, these pencil icons are not the best choice. Can you suggest a better pair of icons? I'd prefer it they were from Font Awesome. http://fortawesome.github.io/Font-Awesome/icons/
I'll add the tooltips.

Rustem

unread,
May 13, 2015, 3:40:03 AM5/13/15
to tiddl...@googlegroups.com
Thank you, everybody. This is quite unexpected. I was doing it for myself, to add some small conveniences. There isn't any code supporting TodoHere even, yet. More like a proof of concept. But if you create a few todos and assign priorities to them, and set the status field to one of "not started", "progress" and "completed", you'll see them having different checkboxes (empty, grayed and checked) and sorted by status and priority.

No, I'm not moving the river into a table. Mans was asking about a table he has inside a tiddler. In that case, the tiddler gets widened beyond 49% limit and so two tiddlers don't fit side by side. Good idea about moving sidebar to the top, but I don't want to make that a default behaviour. Instead, it should be driven by min-width of the river, i.e. as you said, like it happens by default. I'll introduce a separate min-width setting for two columns layout, so everyone could tweak it to their liking.

Danielo Rodríguez

unread,
May 13, 2015, 5:07:46 AM5/13/15
to tiddl...@googlegroups.com


El miércoles, 13 de mayo de 2015, 9:40:03 (UTC+2), Rustem escribió:
There isn't any code supporting TodoHere even, yet. More like a proof of concept. But if you create a few todos and assign priorities to them, and set the status field to one of "not started", "progress" and "completed", you'll see them having different checkboxes (empty, grayed and checked) and sorted by status and priority.
Good! I was wondering why I'm not able to check the checkbox! Could you consider making those status managed by some kind of GUI?
 
 
Good idea about moving sidebar to the top, but I don't want to make that a default behaviour. Instead, it should be driven by min-width of the river, i.e. as you said, like it happens by default. I'll introduce a separate min-width setting for two columns layout, so everyone could tweak it to their liking.

That's even a better idea. Please keep us informed of your progress! 
Reply all
Reply to author
Forward
0 new messages