Re: [tw5] Re: [HowTo] a simple button to cycle in color palettes

2020-12-14 Thread Mohammad Rahmani
Hi Josiah, On Mon, Dec 14, 2020 at 12:42 PM TiddlyTweeter wrote: > Ciao Mohammad > > Thanks for highlighting the new operator. > I myself am very interested to see new features discussed. This is an effort of what I have discovered! :-) TW 5.1.23 has a lot of such great features! > > Very

Re: [tw5] Re: [HowTo] a simple button to cycle in color palettes

2020-12-14 Thread Mohammad Rahmani
Hi Tony! Yes, I think I just focused on the cycle and no the whole snippets. I like your approach. I myself have the simple solution! Thank you --Mohammad On Mon, Dec 14, 2020 at 10:39 AM TW Tones wrote: > Mohammad, > > I was looking at the filter you used and notice a shorter form for >

[tw5] Re: [HowTo] a simple button to cycle in color palettes

2020-12-14 Thread Mohammad
Thank you Saq. Your solution is minimal and semantic! --Mohammad On Monday, December 14, 2020 at 1:25:13 PM UTC+3:30 saq.i...@gmail.com wrote: > @Mohammad > > You can simplify > <$button actions=<> > <$text text={{{ > [[$:/palette]get[text]removeprefix[$:/palettes/]]}}}/> > > to: > >

[tw5] Re: [HowTo] a simple button to cycle in color palettes

2020-12-14 Thread Saq Imtiaz
@Mohammad You can simplify <$button actions=<> > <$text text={{{ [[$:/palette]get[text]removeprefix[$:/palettes/]]}}}/> to: <$button actions=<> > <$text text={{{ [{$:/palette}get[name]]}}}/> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.

[tw5] Re: [HowTo] a simple button to cycle in color palettes

2020-12-14 Thread TiddlyTweeter
Ciao Mohammad Thanks for highlighting the new operator. Very good! Makes buttons fly. CYCLE toggles are a very neat minimalist way to effect change. Best wishes TT On Sunday, 13 December 2020 at 07:34:52 UTC+1 Mohammad wrote: > *Feature in Tiddlywiki 5.1.23* > > TW 5.123 has a new filter

[tw5] Re: [HowTo] a simple button to cycle in color palettes

2020-12-13 Thread TW Tones
Mohammad, I was looking at the filter you used and notice a shorter form for [[$:/palette]get[text] is {$:/palette} <$button actions=<> > <$text text={{{ [{$:/palette}removeprefix[$:/palettes/]] }}}/> However this made me ask do we have the ability to have replaceable parameters in filters

[tw5] Re: [HowTo] a simple button to cycle in color palettes

2020-12-13 Thread TW Tones
Mohammad, Thanks for sharing to the forum insight into features in the pre-release. - This pallet switch would be nice to allow users to choose there own pallet. There are quite a few features that can simplify things people have wanted for a long time in the pre-release. More has