Wow, PMario, I had only seen the two shorter replies. I just realized now you had a much more substantial response. That looks like a lot of work. I will give it a try. Thank you very much.
I actually have been going sideways on this, to get it the way I would use it. It is quite different than HAL. I will share when I get it stable, and I will compare it with the macro you attached. Blessings! On Thursday, August 12, 2021 at 2:45:25 PM UTC-4 PMario wrote: > Hi David, > > You do have a very fine sense, what can be useful for other users. I like > it! > > On Thursday, August 12, 2021 at 3:09:21 PM UTC+2 David Gifford wrote: > > Just got Pfizer shot #2 yesterday, and no reactions yet. >> > > :) > > >> I was poking at the fixes I need to do on the Subsume plugin, and got >> distracted enough to came up with this idea, somewhat similar: >> >> https://giffmex.org/experiments/hal.macro.html (HAL = header and list) >> >> I would appreciate feedback: >> >> 1. Is there a more concise / proper way to do the macro? >> > > I did change quite a bit and hope you like it too. > > >> 2. Do you think the link and edit icons are too annoying? >> > > Yea .. a bit. Especially since you mention printing. So you probably don't > want them to be shown on paper. > > >> Any suggestions? (I am on the fence about how they look and whether the >> 'view' link is necessary. If it were just for me, I would only have the >> edit link. But if I share online content this way, some might want to open >> a tiddler to view it, share a link it, print it, etc, and the edit stuff >> would confuse them). >> > > I can't believe, that I will write this: You could make an "invisible" > edit link, that will only show on hover. So only users, who know, where the > link is will see it. > > For the "link" you could change the hal-caption() macro, that I did add > to the code in a way that it will use a link to the title instead of the > pure text. > > This behaviour could be changed with a global setting. eg: > $:/.giffmex/hal/config/show-caption-link and a reveal-widget. The value > defaults to "no". If it is set to "yes" then it shows the alternative view. > ... It would also be possible to switch between 2 macro names instead of > "yes" and "no" ... > > I think you can borrow some code from my > > >> 3. Is there a way to set the list filter $view so that it displays: >> caption field if there is one, and title field if there is no caption? >> > > Yes. See the new hal-caption() macro in the code > > >> 4. Opinions: do you like it better with or without blurb field? >> > > I do like this field, but imo this will depend on the users taste. > > ----------------------- > > I would suggest the following things. > > - Make the macro code readable, to be able to change stuff > - \whitespace trim ... will remove the extra whitespace, so no > artefacts are part of the HTML code > - Show caption if available ... Using the same mechanism as the > core /toc -macro > - Made the macro code visible in view mode (Kudos go to Eric Shulman;) > - Added the hal-blurb() macro, so it can be switched on / off in the > future. A macro makes future development easier > - I did replace the SPAN elements with DIV elements. SPANs are inline > and DIV are block elements. So now "display: block" in CSS needed! > - I did replace the B elements with STRONG because of some info at MDN > <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b#usage_notes> > See 2nd paragraph there. > - I did remove all the elements (except of 1), because they > should not be used for styling - CSS is used for styling > - There is 1 element left, because it is needed if the > "title" + "blurb" is selected and copy / pasted. There needs to be a > space > in between the title and the blurb > - I did replace the spaces with tc-small-gap-left which is part of > the vanilla CSS > > <https://github.com/Jermolene/TiddlyWiki5/blob/b3accbf9e0b56742be4e07f67cfa325921dcfccd/themes/tiddlywiki/vanilla/base.tid#L3031> > > since 5.1.23. > > > - I did make the Stylesheet readable > - I did clean the Stylesheet a bit and add new elements needed > - There is a hover "animation" for the buttons now > - The mouse cursor changes shape, to give user-feedback, when they > are able to click something > > > Hope you like it. > Code is in the attachment > > IMO that's not all things, that may be done. Especially the link- and > edit-buttons could be improved with settings. > > "Well, I don’t think there is any question about it. > It can only be attributable to human error. > This sort of thing has cropped up before, and it has always been due to > human error." > - HAL9000 > > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3d14bca7-37ac-4959-a605-fbe6c58a1048n%40googlegroups.com.

