[tw] Re: removeprefix

2018-01-03 Thread tobaisch
This is a really cool button. 
Thanks a lot!

 

-- 
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/469fabfe-3efa-482d-966a-ec86d8a45921%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-03 Thread 'Mark S.' via TiddlyWiki
PS: Here's the code to help make all those sfx fields. Be sure to make a 
back-up first in case I've made a mistake or your data is different somehow:

<$button>Create suffix field
<$list filter="[has[nr]]">
<$list filter="[all[current]removeprefix{!!nr}]" variable="sfx">
<$action-setfield  sfx=<>/>




-- Mark

On Wednesday, January 3, 2018 at 2:25:27 PM UTC-8, Mark S. wrote:
>
> For 800 tiddlers it would add about 8k. Which compared to the baseline 2.5 
> meg size of TW5 is little.
>
> On Wednesday, January 3, 2018 at 2:19:03 PM UTC-8, tobaisch wrote:
>>
>> hello coda coder,
>> thanks, but it doesnt work too.
>>
>> @Mark
>>  
>>
>>> So add a field that also contains the suffix 
>>>
>>
>> Is not that a waste of data? I then have twice the suffix once in the 
>> title and once in the field. With 800 Tiddlers that makes a difference.
>> I rather thought of deleting the prefix (this is faster in Notepad ++) 
>> and then adding the field "nr" in the view of the standard search.
>> I have to think through all variants again.
>> And maybe even a clever head will come around here and find a solution?
>> Mark, what do you say to my questions?
>> Are you 100% sure that there is no possibility for sorting after 
>> removeprefix?
>> Is there another field beside the title field which is (or can be make) 
>> searchable with the standard search?
>> Thanks
>> Regards
>> Tob
>>
>>
>>
>>
>>

-- 
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/f3248b78-346d-4e6f-9678-c387c9ff7c72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-03 Thread 'Mark S.' via TiddlyWiki
For 800 tiddlers it would add about 8k. Which compared to the baseline 2.5 
meg size of TW5 is little.

On Wednesday, January 3, 2018 at 2:19:03 PM UTC-8, tobaisch wrote:
>
> hello coda coder,
> thanks, but it doesnt work too.
>
> @Mark
>  
>
>> So add a field that also contains the suffix 
>>
>
> Is not that a waste of data? I then have twice the suffix once in the 
> title and once in the field. With 800 Tiddlers that makes a difference.
> I rather thought of deleting the prefix (this is faster in Notepad ++) and 
> then adding the field "nr" in the view of the standard search.
> I have to think through all variants again.
> And maybe even a clever head will come around here and find a solution?
> Mark, what do you say to my questions?
> Are you 100% sure that there is no possibility for sorting after 
> removeprefix?
> Is there another field beside the title field which is (or can be make) 
> searchable with the standard search?
> Thanks
> Regards
> Tob
>
>
>
>
>

-- 
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/1a2418ad-3141-48db-af0b-4cab0e4f081e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-03 Thread tobaisch

>
> So add a field that also contains the suffix 
>

Is not that a waste of data? I then have twice the suffix once in the title 
and once in the field. With 800 Tiddlers that makes a difference.
I rather thought of deleting the prefix (this is faster in Notepad ++) and 
then adding the field "nr" in the view of the standard search.
I have to think through all variants again.
And maybe even a clever head will come around here and find a solution?
Mark, what do you say to my questions?
Are you 100% sure that there is no possibility for sorting after 
removeprefix?
Is there another field beside the title field which is (or can be make) 
searchable with the standard search?
Thanks
Regards
Tob




-- 
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/3de28459-3cce-4474-ac60-86f623b152a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-03 Thread 'Mark S.' via TiddlyWiki
That won't work because it will only remove the prefix stored in the nr 
field of the calling tiddler. 

It only takes a couple of tiddlers to test. Attached.

-- Mark

On Wednesday, January 3, 2018 at 11:37:52 AM UTC-8, coda coder wrote:
>
> Try this (untested)
>
> <$list 
> filter="[all[current]has[nr]removeprefix{!!nr}sort[]addprefix{!!nr}]">
><$list filter="[all[current]removeprefix{!!nr}]" variable="thisTiddler">
><$link to=<>> <$text text=<>/> 
>  
>
> 
>
>
>
>
> On Wednesday, January 3, 2018 at 12:55:06 PM UTC-6, tobaisch wrote:
>>
>>
>> All the sorting occurs in the outer loop. But there's no mechanism to 
>>> sort by a portion of the title.
>>>
>>
>> Are you 100% sure that there is no possibility for sorting after 
>> removeprefix?
>> I can remove the numbers from the title, but undoing them will be very 
>> difficult.
>> I have already a field "nr" with the numbers.
>>
>> Is there another field beside the title field which is (or can be make) 
>> searchable with the standard search?
>> Regards
>> Tob
>>
>

-- 
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/da727bab-9f3e-4449-a2f5-67f4d5f878ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


tiddlers(3).json
Description: application/json


[tw] Re: removeprefix

2018-01-03 Thread 'Mark S.' via TiddlyWiki
The nr number contains the prefix, right? But you want to sort by the 
suffix?

So add a field that also contains the suffix (perhaps sfx). 

You don't have to change the title. You can then sort by the sfx field and 
display it but link to the title field.

The list code might look like:

<$list filter="[has[sfx]sort[sfx]]">
<$link><$view field=sfx/>


-- Mark

On Wednesday, January 3, 2018 at 10:55:06 AM UTC-8, tobaisch wrote:
>
>
> All the sorting occurs in the outer loop. But there's no mechanism to sort 
>> by a portion of the title.
>>
>
> Are you 100% sure that there is no possibility for sorting after 
> removeprefix?
> I can remove the numbers from the title, but undoing them will be very 
> difficult.
> I have already a field "nr" with the numbers.
>
> Is there another field beside the title field which is (or can be make) 
> searchable with the standard search?
> Regards
> Tob
>

-- 
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/2dbbec60-b9bc-47e9-b814-2513ffbfd328%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-03 Thread coda coder
Try this (untested)

<$list 
filter="[all[current]has[nr]removeprefix{!!nr}sort[]addprefix{!!nr}]">
   <$list filter="[all[current]removeprefix{!!nr}]" variable="thisTiddler">
   <$link to=<>> <$text text=<>/> 
 
   





On Wednesday, January 3, 2018 at 12:55:06 PM UTC-6, tobaisch wrote:
>
>
> All the sorting occurs in the outer loop. But there's no mechanism to sort 
>> by a portion of the title.
>>
>
> Are you 100% sure that there is no possibility for sorting after 
> removeprefix?
> I can remove the numbers from the title, but undoing them will be very 
> difficult.
> I have already a field "nr" with the numbers.
>
> Is there another field beside the title field which is (or can be make) 
> searchable with the standard search?
> Regards
> Tob
>

-- 
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/1b4d6e5d-513b-4669-8346-22d8674b7215%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-03 Thread tobaisch


> All the sorting occurs in the outer loop. But there's no mechanism to sort 
> by a portion of the title.
>

Are you 100% sure that there is no possibility for sorting after 
removeprefix?
I can remove the numbers from the title, but undoing them will be very 
difficult.
I have already a field "nr" with the numbers.

Is there another field beside the title field which is (or can be make) 
searchable with the standard search?
Regards
Tob

-- 
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/fdc5dc8e-db86-4562-a657-2a74911b3027%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-03 Thread 'Mark S.' via TiddlyWiki
There is no "sort from position N" filter. Perhaps you could make a Pull 
Request for one.

It's possible that someone has made a 3rd party tool for this.

Use separate fields for the parts of the title and your problems will 
disappear.

You can't watch TV on your 2018 multi-cooker, nor send a message to the ISS 
via paper airplane. All technology has limits of some sort.

-- Mark

On Wednesday, January 3, 2018 at 7:58:39 AM UTC-8, tobaisch wrote:
>
> What about a sorting from position n?
> So I sort before the removal of the numbers
> Today we can make livestreams with any smartphone to the ISS and cars 
> they driving alone but no sorting of letters in a list! :)
> Regards
> Tob
>

-- 
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/cc92d876-09f9-4416-a33d-67e614a10821%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-03 Thread tobaisch
What about a sorting from position n?
So I sort before the removal of the numbers
Today we can make livestreams with any smartphone to the ISS and cars they 
driving alone but no sorting of letters in a list? :)
Regards
Tob

-- 
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/8bb7480a-321d-4d5b-8bfd-16e7290b1df3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-03 Thread 'Mark S.' via TiddlyWiki
All the sorting occurs in the outer loop. But there's no mechanism to sort 
by a portion of the title.

Putting multiple pieces of information into a single field (the title) 
causes headaches.

This is why I suggested creating a field to sort by in each tiddler. 

-- Mark

On Tuesday, January 2, 2018 at 11:32:16 PM UTC-8, tobaisch wrote:
>
> U-N-B-E-L-I-E-V-A-B-L-E
> thank you so much.
> It works as it should.
> And I can also use it as a template.
> But the sorting does not work anymore.
> It sorted according to the numbers like before, but should now sort by the 
> first letters. 
> I tried to put the nsort[] at all sorts of position after removeprefix 
> but had no success.
> Hmm?
> Regards
> Tob.
>

-- 
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/c1500ef0-85a8-46c6-897d-84efdc4e4a35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-02 Thread tobaisch
nsort[] 
U-N-B-E-L-I-E-V-A-B-L-E
thank you so much.
It works as it should.
And I can also use it as a template.
But the sorting does not work anymore.
It sorted according to the numbers liek before but should now sort by the 
first letters. 
I tried to put the nsort[] at all sorts of position after removeprefix but 
had no success.
Hmm?
Regards
Tob.

-- 
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/7cd0c6b7-9cae-42fb-8911-8d7d59bd1698%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-02 Thread Eric Shulman
On Tuesday, January 2, 2018 at 6:40:27 PM UTC-8, tobaisch wrote:
>
> Hello Eric,
> thanks.
> Your assumption is correct.
> Your code does not work for me.
> Also no error message
> Is there something else to be added instead of the "..."?
>

My apologies... I'm using MUCH more verbose in my responses.  Let me try 
again:

Using this code:
<$list filter="[all[tiddlers]nsort[]]">
   <$list filter="[all[current]removeprefix{!!nr}}">
   ...
   

 
The outer $list widget iterates over all the tiddlers in the document, 
sorted numerically.  By default, as it iterates, it sets the value of the 
"currentTiddler" variable, so that within the outer $list, the 
"currentTiddler" is equal to each tiddler title it finds, one at a time.

The inner $list widget then operates on the current tiddler title, using 
filter syntax "all[current]", and removes the prefix (if any), based on the 
value of the "nr" field of the current tiddler.

Here's where I left out some explanation (and some important syntax too!)...

Within the body of the inner $list widget, the value of currentTiddler 
should then be a tiddler title with the number prefix removed.  However, 
there's TWO issues here that I failed to touch on:

1) If there is NO "nr" field in the current tiddler, then the 
"removeprefix" filter will return the current tiddler title, unchanged.  
This would cause matches with tiddlers that are unnumbered.  To exclude 
those tiddlers and only show tiddlers that actually have an nr value 
defined, we need to test that the "nr" field is actually present in that 
tiddler, by using the has[fieldname] filter operator, like this:

   <$list filter="[all[current]has[nr]removeprefix{!!nr}}">

2) I used "..." as a placeholder for "... and then you do more stuff with 
the matched tiddler..."  Let's assume that "more stuff" is something like 
"output a link to the matched tiddler".  To do this, you want to preserve 
access to the FULL name of the tiddler, *including* the number, so you can 
link to it.  But you also want the truncated tiddler title *without* the 
number for display purposes.  To do this, you can add a separate "variable" 
param to the <$list> widget, like this:

   <$list filter="[all[current]has[nr]removeprefix{!!nr}}" 
variable="thistiddler">

This will avoid changing the value of "currentTiddler" as set by the outer 
$list widget, and instead using "thisTiddler" to store the title with the 
prefix removed.  You can then construct a suitable $link widget output 
within the inner $list widget, using both variables accordingly... like 
this:

<$list filter="[all[tiddlers]nsort[]]">
   <$list filter="[all[current]removeprefix{!!nr}}" variable="thisTiddler">
   <$link to=<>> <$text text=<>/> 
 
   


Notes:
a) The ... syntax makes the output show as a bullet point
b) The $link widget uses the value of "currentTiddler" by default, so it 
could be written as just <$link>... without the to="..." param and 
it would still work as intended
c) The $text widget ensures that the text is displayed without additional 
processing for automatic WikiWord linking (e.g., if the tiddler title is 
"0123 SomeThing", then the "SomeThing" text won't become a link to a 
"SomeThing" tiddler, but WILL be linked to the full "0123 SomeThing" title, 
based on the containing $link widget.

I hope this explanation doesn't confuse you more!

let me know how it goes...
-e

-- 
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/b4d9c434-611a-4514-aac9-0a5e3fdb4e1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-02 Thread tobaisch
Hello Eric,
thanks.
Your assumption is correct.
Your code does not work for me.
Also no error message
Is there something else to be added instead of the "..."?
Regards
Tob

-- 
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/4400d9b7-3098-4fb4-9904-efa2033e05c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-02 Thread Eric Shulman
On Tuesday, January 2, 2018 at 3:30:30 PM UTC-8, tobaisch wrote:
>
> What is the mistake in this type of code?
>
>  <$list filter="[all[tiddlers]nsort[]] +[removeprefix[{{!!nr}}]]" />
>

Two problems:
1) the brackets on the "removeprefix" filter are wrong.  When referencing a 
field value, just use SINGLE curly braces, like this:

+[removeprefix{!!nr}] 

2) I assume your intention is to remove the number prefix from each tiddler 
title, based on the "nr" field of each tiddler.  However, the "current 
tiddler" context for your filter is the tiddler that *contains* the <$list> 
widget, rather than the title of each tiddler found in the first part of 
the filter.  To do as you want, you need to nest two filters, like this:

<$list filter="[all[tiddlers]nsort[]]">
   <$list filter="[all[current]removeprefix{!!nr}}">
   ...
   


-e


-- 
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/1f002711-b8e2-41a9-b3d5-5e872325f0f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-02 Thread tobaisch

hello Mark,
thanks, at the beginning I just wanted to ensure a reasonably structured 
presentation of my Tiddler. 
The field "nr" I have just set up for security to filter later thereafter. 
Unfortunately that does not seem to work right now.
I do not understand what should be so annoying now about these numbers?
The structure is always the same. I can delete the field "nr", but does 
that help?

Don't forget, i will make a template to change the display of my 
searchresults.
A static list ist not what im looking for i m looking for a filteroption.
What is the mistake in this type of code?

 <$list filter="[all[tiddlers]nsort[]] +[removeprefix[{{!!nr}}]]" />

Regards
Tob

-- 
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/230c835a-3d43-4346-936e-97b4f4bc711c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-02 Thread 'Mark S.' via TiddlyWiki
The problem is that you're attempting to use the title field in 2 
additional ways, in addition to it being a title and an ID field. This 
creates all sorts of headaches.

Anyway, the solution is to make a button that will populate a field with 
the suffix. Then you can easily list and sort by that field while creating 
links to the original tiddler title.

-- Mark

On Tuesday, January 2, 2018 at 11:31:11 AM UTC-8, tobaisch wrote:
>
> Thanks Mark,
>
>> The problem is that your final list won't necessarily be sorted the way 
>> you expect.
>>
>
> This is really a big problem.
> That's the reason why I wanted this list in this form.
> Also, I can not use it as a template.
> I wanted to use this as a template for the search.
> Is your assessment final or do you think that there may be another 
> solution?
> That does not sound good. :(
>
> Maybe you can improve something in my initially mentioned variants, that 
> they work?
> Why 
> <$list filter="[all[tiddlers]nsort[]] +[removeprefix[{{!!nr}}]]" />
> does not work?
> Regards 
> Tob
>

-- 
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/82fb95e6-731b-4d80-a6cf-f608b528ec7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-02 Thread tobaisch
Many Thanks.
The plugin looks like a solution but so far I have not had any success.
Short to your variant:
I have no "-" therefore it does not fit.
And also your list is not displayed as a link. This is exorbitantly 
important, because I want to call the found Tiddler.
Ex: My Tiddler title: *0299 lastname prename - something*
I have the plugin installed.
My experiments and many others brought nothing:
<$ list filter = "[all[tiddlers]has[nr]nsort[]]split:after[pos=4]" />
<$ list filter = "[all[tiddlers]has[nr]split[pos=5 num=1]nsort[]]" />
Although there are many examples on this site, my case was not listed 
as an example :(
And it also makes it seem as if the links do not work anymore after 
splitting, which in turn is out of the question as a solution for me.
That's why I like to stay with the old version and want to find the 
mistake here.
   
 <$list filter="[all[tiddlers]nsort[]] +[removeprefix[{{!!nr}}]]" />

Thank you again, thank you all for your effort.
You are really friendly and helpful here!
Regards
Tob 
 

-- 
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/bccbae06-7528-4f1a-b4d2-511875fc87f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-02 Thread Diego Mesa
A quick example: 

With the following tiddlers:

   - 001-ABC
   - 002-BCD
   - 003-AAA

where they have the appropriate nr fields, you can use:

<$list filter="[all[tiddlers]has[nr]split:after[-]sort[]]" variable="asd">
<$list filter="[all[tiddlers]suffix]">
<$view field="title"/>



My missing link to Tobias split 
plugin: https://tobibeer.github.io/tw5-plugins/#split

On Tuesday, January 2, 2018 at 2:47:43 PM UTC-5, Diego Mesa wrote:
>
> Hello Tob,
>
> I frequently use Tobias' excellent split plugin.
>
> You could use:
>
> [all[tiddlers]has[nr]split:after[-]sort[]]
>
> to get the correct list of sorted "titles". The thing is you'd now have to 
> *link* them to the correct tiddler. 
>
> On Tuesday, January 2, 2018 at 2:31:11 PM UTC-5, tobaisch wrote:
>>
>> Thanks Mark,
>>
>>> The problem is that your final list won't necessarily be sorted the way 
>>> you expect.
>>>
>>
>> This is really a big problem.
>> That's the reason why I wanted this list in this form.
>> Also, I can not use it as a template.
>> I wanted to use this as a template for the search.
>> Is your assessment final or do you think that there may be another 
>> solution?
>> That does not sound good. :(
>> Regards 
>> Tob
>>
>

-- 
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/d0fd7d65-0d82-4205-953f-1f8bfa21e61d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-02 Thread Diego Mesa
Hello Tob,

I frequently use Tobias' excellent split plugin.

You could use:

[all[tiddlers]has[nr]split:after[-]sort[]]

to get the correct list of sorted "titles". The thing is you'd now have to 
*link* them to the correct tiddler. 

On Tuesday, January 2, 2018 at 2:31:11 PM UTC-5, tobaisch wrote:
>
> Thanks Mark,
>
>> The problem is that your final list won't necessarily be sorted the way 
>> you expect.
>>
>
> This is really a big problem.
> That's the reason why I wanted this list in this form.
> Also, I can not use it as a template.
> I wanted to use this as a template for the search.
> Is your assessment final or do you think that there may be another 
> solution?
> That does not sound good. :(
> Regards 
> Tob
>

-- 
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/e3473edc-4663-488b-9375-9e46df9ee6be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-02 Thread tobaisch
Thanks Mark,

> The problem is that your final list won't necessarily be sorted the way 
> you expect.
>

This is really a big problem.
That's the reason why I wanted this list in this form.
Also, I can not use it as a template.
I wanted to use this as a template for the search.
Is your assessment final or do you think that there may be another solution?
That does not sound good. :(
Regards 
Tob

-- 
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/ef73766c-5b27-42ca-b621-5a6f6061d445%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: removeprefix

2018-01-02 Thread 'Mark S.' via TiddlyWiki
I think you'll need nested lists:

<$list filter="[all[tiddlers]has[nr]]">
<$vars nr={{!!nr}}>
<$list filter="[all[current]removeprefix]">
<$view field="title"/>




The problem is that your final list won't necessarily be sorted the way you 
expect.

Good luck,
Mark

On Tuesday, January 2, 2018 at 9:31:17 AM UTC-8, tobaisch wrote:
>
> Hello,
> all my tiddlers have a number in the title as a prefix.
> "0001-ABC" to "1000-EGAL".
> I already have the prefix 0001-1000 exactly as a field:"nr".
> I would like to show all Tiddler without this previx in a list and sort 
> after the first letter
>
> Actually, one would only have to remove the field: "nr" from the beginning 
> of the title
> Or do I understand something wrong?
> I have found here in the forum 2 variants but they do not work.
> < !prefix[field:nr]">>
> or
> [removeprefix[field:nr] [!prefix[field:nr]]
>
> Thanks
> Regards
> Tob
>

-- 
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/2a807b6b-6bca-4e06-aff9-3acce6498344%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Removeprefix syntax

2016-05-06 Thread 'Stuart Amor' via TiddlyWiki
Reading the documentation I thought this would work? But it doesn't...

<$list filter="[is[system]] [is[shadow]] +[search[Door Status Monitoring: X]] 
+[tag[$:/tags/sectec/office-location-data]]" +[removeprefix[$:/]] 
template="$:/core/ui/ListItemTemplate"/>

-- 
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/6d3eadaf-4c1d-4d14-926f-db1572fdcdc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.