[tw] Re: Sort by size?

2017-09-12 Thread magev958
I use this solution:
https://groups.google.com/d/msg/tiddlywiki/hr75FTeEL_g/Yuk_6gxpY_wJ

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/31c2f62f-892f-442c-980d-fea9e75875b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Sort by size?

2017-09-11 Thread Mat
Birthe C wrote:
>
> ... 
> http://tobibeer.github.io/tb5/#How%20Big%20Are%20Tiddlers%20In%20Size%3F
>

Birthe - that was exactly it! Stephan Hradek had a created the exact things 
needed and presented by Tobias Beer.

(This also reminded me that I was sloppy in checking the archives!)

Thank you Birthe!!! And thanks again Mark.

<:-)

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9fe501f2-5033-41b6-9c72-6c80a2f20244%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Sort by size?

2017-09-11 Thread Birthe C
Hi Mat,

https://groups.google.com/forum/#!msg/tiddlywiki/hr75FTeEL_g/tFQ-ZIQoMLwJ and 
http://tobibeer.github.io/tb5/#How%20Big%20Are%20Tiddlers%20In%20Size%3F


Birthe

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6dbf2318-e4c8-4a10-89e1-7ceed0d93de4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Sort by size?

2017-09-11 Thread 'Mark S.' via TiddlyWiki
Hi Mat,

You can use the $timestamp attribute of action-setfield to prevent the date 
from being modified.

Mark

On Monday, September 11, 2017 at 5:27:47 PM UTC-7, Mat wrote:
>
> Thanks for reply Mark!
>
>  
>
>> I'm thinking of a 2-step process.
>>
>> In step 1, you calculate the size of the text field and put it in a field 
>> (e.g. size).
>>
>
> Hm, that would modify every tiddler then and mess up their dates. Maybe I 
> could copy each title and the size of it, into some dictionary or sth.
>
> I'll do some further thinking and maybe someone else has more ideas. I 
> also have a hunch that Tobias' might have something that could solve this. 
> I think he had some plugin or widget that allowed two step filters. Will 
> look tomorrow.
>
>
> ... I know you can write the TW-code faster than I can ;-)
>>
>
> Ha ha! I'm often impressed by your attention to detail, but you're way off 
> here. My bang-my-head approach usually takes absolutely *embarrassing* 
> lengths of time.
>
> <:-)
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6155e23e-fa45-42e6-8ae5-6142bb451c1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Sort by size?

2017-09-11 Thread Mat
Thanks for reply Mark!

 

> I'm thinking of a 2-step process.
>
> In step 1, you calculate the size of the text field and put it in a field 
> (e.g. size).
>

Hm, that would modify every tiddler then and mess up their dates. Maybe I 
could copy each title and the size of it, into some dictionary or sth.

I'll do some further thinking and maybe someone else has more ideas. I also 
have a hunch that Tobias' might have something that could solve this. I 
think he had some plugin or widget that allowed two step filters. Will look 
tomorrow.


... I know you can write the TW-code faster than I can ;-)
>

Ha ha! I'm often impressed by your attention to detail, but you're way off 
here. My bang-my-head approach usually takes absolutely *embarrassing* 
lengths of time.

<:-)

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d47f8508-8a5e-4802-a3e4-2a84fadf4e09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Sort by size?

2017-09-11 Thread 'Mark S.' via TiddlyWiki
I'm thinking of a 2-step process.

In step 1, you calculate the size of the text field and put it in a field 
(e.g. size).

Then step 2 you simply sort numerically by the size field.

So how to get the count?

You can use the regexps string I presented in another thread to globally 
split the entire text field character-by-character. Use the count filter 
operator to count the resulting size. Use action-setfield to save the 
resulting value. This entire process is called in an outer <$list> for each 
of the items you want to include in your sort. 

It's lazy of me not to try all this, but I know you can write the TW-code 
faster than I can ;-)

HTH
Mark



 


On Monday, September 11, 2017 at 4:15:11 PM UTC-7, Mat wrote:
>
> Summary: I'd like to *sort my tids by size* and am wondering if anyone 
> has a solution for this?
>
> Longer:
>
> I'm in the process of converting my main TWC with thousands of tiddlers 
> into TW5, and it struck me as a good opportunity for cleaning.
>
> To make the most out of this, I'd like to sort my tids by size. The ideal 
> would be to know the *byte size per full tiddler*, but I guess *character 
> count per tiddlers text-field* is pretty close.
>
> Any ideas?
>
> --
>
> Note: I found Thomas Elmigers EditorCounter 
>  with which I can get a 
> count:title listing... 
>
> <$list filter="[tag[Foo]]">
> <$editor-counter tiddler={{!!title}} field=text /> {{!!title}}
> 
>
> ...but it is not sorted.
>
> Now how to use that count for sorting is really another problem, so I'm 
> posting a question for that separately. But I still wanted to mention 
> Thomas' plugin in case someone has an idea how to use it for my problem.
>
> Thank you.
>
> <:-)
>
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/77e717dc-2f9e-4c3b-9ade-0a91e6f5c185%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.