[tw5] Re: Another set of eyes on my code

2021-07-26 Thread 'Mark S.' via TiddlyWiki
Unless something has changed in the rules of TW, you can't insert the contents of a widget in the middle of a widget this way: <$action-setfield $tiddler=<> $field=<> $value=<$transclude tiddler=<>/> /> This does seem like a possible copy/paste error per cj's suggestion. On Monday, July 26,

[tw5] Re: Sharing Drift

2021-07-26 Thread hexa...@gmail.com
Hello Tony K, Thank you for your great work! But it seems that there is a little bug about UTF8 character or other reason I dont know. Like this: [image: QQ截图20210727104207.png] If I use a tiddler title in Chinese, then it can be searched by "references" but cannot be shown in

[tw5] Re: How can I hide the color-picker when adding a "color" field?

2021-07-26 Thread Eric Shulman
On Monday, July 26, 2021 at 7:40:48 AM UTC-7 Eric Shulman wrote: > OK... so I thought of a really neat way to achieve your goal *without > modifying my macro!* Tony, I've just added this method of using variables vs. parameters as an alternative macro definition:

Re: [tw5] Re: NoteTaking in Streams - hierarchy-preserving flattening in wikitext

2021-07-26 Thread 'Mark S.' via TiddlyWiki
Here's the search kit I came up with. Please make a back-up before using. It puts a streams search in the advanced search or a sub-search in the standard search allowing you to find either the stream root that contains a term or to display the first 80 characters of stream tiddlers with

[tw5] Re: How can I override the color of a link without changing the rest of the styling?

2021-07-26 Thread Si
Thanks Brian! On Monday, 26 July 2021 at 21:34:52 UTC+1 Brian Radspinner wrote: > *a.myClass* should have a slightly higher CSS specificity >

[tw5] Re: How can I override the color of a link without changing the rest of the styling?

2021-07-26 Thread Brian Radspinner
*a.myClass* should have a slightly higher CSS specificity than the default link styling,

[tw5] Re: Another set of eyes on my code

2021-07-26 Thread Charlie Veniot
Silly thought: any chance you were doing some copy/pasting in the whereabouts of that button or the macros above ? Just a couple of times, I've had situations in which it felt like I had hidden characters either at the end of a line or the beginning of the next line. Strange problems fixed by

[tw5] Re: How can I override the color of a link without changing the rest of the styling?

2021-07-26 Thread Si
Perfect thank you! Out of curiousity, why *does* this work? As far as I know a.myClass will select any link element that has the class myClass, but why doesn't .myClass work? Shouldn't it select any element with the class myClass, which would naturally include any link element with that class?

[tw5] Re: List Widget Filters "Only" operator

2021-07-26 Thread PMario
Hi John, If you found a solution, it would be nice if you share it. If it still causes headaches, let us know. -m -- 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

[tw5] Niche interest - popup placement demo

2021-07-26 Thread clutterstack
Hi all, I made a demonstration of popup placement using the reveal widget's position attribute. It doesn't give you control of all the factors that might affect popup shape and position, but it did help me to understand the behaviour and intent of each positioning option.

[tw5] Re: How can I override the color of a link without changing the rest of the styling?

2021-07-26 Thread Brian Radspinner
Try this: *a.myClass {color:green;}<$link class=myClass to="Hello"/>* On Monday, July 26, 2021 at 10:09:46 AM UTC-7 Si wrote: > I'm trying to create a template using the link widget that gives me green > links. I tried the following which does not work: > > > .myClass {color:green;} > >

[tw5] Re: filter question

2021-07-26 Thread paulgilbert2000
Thanks guys, i don't mind the tag being replaced, i was more interested to know how to apply actions to some but not all tiddlers listed, the button is there only to add the tag and not to display the list, i just want the button to add the tag to only a subset of the list that is tagged

[tw5] Re: Is there a way to apply a template stored in the field of another tiddler?

2021-07-26 Thread Si
Thanks Tones! Do you think it would be helpful if a shorthand like {{Tiddler to link to||MyTemplate!!template}} worked? Maybe I should make a feature request? On Monday, 26 July 2021 at 01:11:17 UTC+1 TW Tones wrote: > Si, > > Yes you can, *apply a template stored in the field of another

[tw5] How can I override the color of a link without changing the rest of the styling?

2021-07-26 Thread Si
I'm trying to create a template using the link widget that gives me green links. I tried the following which does not work: .myClass {color:green;} <$link class=myClass to="Hello"/> I know about the overrideClass attribute, but using this means that I loose all the other styling that

[tw5] Re: Another set of eyes on my code

2021-07-26 Thread PMario
Hi Tony, I would have a look at it, if you'd provide a json with 2 or 3 tiddlers in it that I can import at tiddlywiki.com, which show the problem. Just with this code and the description, that I don't understand 100% it's hard to see a problem. I'm not in the mood to create a testcase, that I

[tw5] Re: How can I hide the color-picker when adding a "color" field?

2021-07-26 Thread Eric Shulman
OK... so I thought of a really neat way to achieve your goal *without modifying my macro!* Give this a try: First, Create a tiddler (e.g., MyMacros/edit-list), tagged with $:/tags/Macro, containing: \define my-edit-list( id, tiddler, field, index, timestamp, default,

[tw5] Re: How can I hide the color-picker when adding a "color" field?

2021-07-26 Thread Eric Shulman
On Monday, July 26, 2021 at 5:07:07 AM UTC-7 TW Tones wrote: > This method mentioned later for setting variables to use in edit-list may > be better (although untested) > <$vars > field={{{ [[$field$]is[blank]then] }}} > paramname={{{ [[$paramname$]is[blank]then] }}} > > > The

[tw5] Re: List Widget Filters "Only" operator

2021-07-26 Thread John McDonnell
Thanks everyone, useful information. @PMario - I'll take a look at that and: 1) Try and apply the example as written for a single tag to see if I can get it working 2) Try and extend to two tags It looks like it should be straightforward enough and I'll be able to add a new tool to my belt.

[tw5] Re: How to create a table that updates each cell entry as tiddlers change?

2021-07-26 Thread Charlie Veniot
Thank-you much. Go ahead and make me blush. When the mood strikes, that coding itch just needs to be scratched. TiddlyWiki is great for quick and dirty prototyping. On Monday, July 26, 2021 at 4:15:54 AM UTC-3 TW Tones wrote: > Nice work Charlie! > Tones > > On Monday, 26 July 2021 at

[tw5] Another set of eyes on my code

2021-07-26 Thread TW Tones
Folks, Deep within a larger project I have some macros. there is a button that displays its tooltip but its actions are not occurring. I have spent hours trying work out why it is not working when it did previously. Can anyone see why the first button is visible but not reacting, if it did I

[tw5] Re: How can I hide the color-picker when adding a "color" field?

2021-07-26 Thread TW Tones
Oh, This method mentioned later for setting variables to use in edit-list may be better (although untested) <$vars field={{{ [[$field$]is[blank]then] }}} paramname={{{ [[$paramname$]is[blank]then] }}} > Regards Tones On Monday, 26 July 2021 at 17:42:45 UTC+10 Eric Shulman wrote: >

[tw5] Re: How can I hide the color-picker when adding a "color" field?

2021-07-26 Thread TW Tones
Eric, Thanks for your feedback. this is a seriously advance tool thanks. I see what you are saying about the uncertainty without the confirm:yes option. In my fancy-fields solution I have one mode called update, basically each field type has some wikitext defining how to view and how to edit

[tw5] Re: How can I hide the color-picker when adding a "color" field?

2021-07-26 Thread Eric Shulman
On Monday, July 26, 2021 at 12:10:01 AM UTC-7 TW Tones wrote: > If you area interested for a future enhancement, this is very appropriate > to the edit-list widget, I would think it somewhat trivial each time the > value of a field is selected/set to record it in a data tiddler so we can > get

[tw5] Re: How can I hide the color-picker when adding a "color" field?

2021-07-26 Thread Eric Shulman
On Monday, July 26, 2021 at 12:02:43 AM UTC-7 TW Tones wrote: > I thought I had missed this all a long, not that it was in the process of > creation. > I created the edit-list macro quite a while ago for use in http://TiddlyTools.com/filtergenerators.html, but I've only recently completely

[tw5] Re: How to create a table that updates each cell entry as tiddlers change?

2021-07-26 Thread TW Tones
Nice work Charlie! Tones On Monday, 26 July 2021 at 11:26:18 UTC+10 cj.v...@gmail.com wrote: > Hey Harry, > > Your use case had me pondering how I'd prototype something like that. > > It wound up turning into a "brain age" exercise for me, as I went ahead > and put together a wee

[tw5] Re: filter question

2021-07-26 Thread TW Tones
As fred points out <$action-setfield tags="tag1"/> is to set the whole tags field to tag1, obliterating any other contents. Since tags can hold more than one tagname or title you must treat it as a list and use the actions designed for tags or use the listop actions. Unless of course you want

[tw5] Re: How can I hide the color-picker when adding a "color" field?

2021-07-26 Thread TW Tones
Eric, If you area interested for a future enhancement, this is very appropriate to the edit-list widget, I would think it somewhat trivial each time the value of a field is selected/set to record it in a data tiddler so we can get the most recently used values, perhaps lifting it to the top of

[tw5] Re: How can I hide the color-picker when adding a "color" field?

2021-07-26 Thread TW Tones
Eric, I thought I had missed this all a long, not that it was in the process of creation. I have built a package for field definitions and they can be assigned a field-type. The field type determines how a field will appear in a number of modes such as view or edit and allows editing in the