Query: Would it be possible to make a "filter builder?"

171 views
Skip to first unread message

@TiddlyTweeter

unread,
Sep 1, 2019, 3:56:14 AM9/1/19
to TiddlyWiki
Just wondering, given the range of Operators now, whether a tool would be possible that can "build a filter".

TT

@TiddlyTweeter

unread,
Sep 1, 2019, 3:58:13 AM9/1/19
to TiddlyWiki
repeat for email.

TonyM

unread,
Sep 1, 2019, 5:55:16 AM9/1/19
to TiddlyWiki
Tt

Interesting question. I think the subfilter operator would help combine seperatly defined filters perhaps selected from a list.

Could you tell us a little more what you are thinking?

perhaps a dialogue that helps filters to be built from a lookup of operators?

populate a field with a filter that is then transclued into a list widget etc...

I think the main issue will be handling the syntax and wrapping delimiters and this is why I think the subfilter operator will help.

I also think such a solution should be designed so additional filters and techniques can be contributed to a repository by the community within a framework and by submitting appropriately constructed tiddlers. Perhaps both standalone and appendable versions of a given filter are required.

Of late I built an infrastructure for defining fields and assigning field types. Each field type will respond to a mode of read-only, view, update and full edit. When editing fields you can provide a filter that allows you to select the values from various sources like, list, tags, existing values in fields or data tiddler. I mention this because you could use various settings in tiddler fields to construct a compound filter in its text field which is then transclued as needed in a way also compatible with the filters defined in advanced search.

Regards
Tony

@TiddlyTweeter

unread,
Sep 1, 2019, 6:05:53 AM9/1/19
to TiddlyWiki
TonyM asked: 

Interesting question. .... 

Could you tell us a little more what you are thinking?


I'm simply noticing the combined power of a full filters. 

Very powerful. 

But in a Strange Esoteric Language.

I would say a virgin user would not have much of a chance with them just reading docs.

So, its partly about "learning whilst doing". Use a "constructor" (that explains some things) until you are more fluid with them.

But I'm not sure whether its workable? So many possible combinations?

TT

PMario

unread,
Sep 1, 2019, 6:45:45 AM9/1/19
to TiddlyWiki
On Sunday, September 1, 2019 at 12:05:53 PM UTC+2, @TiddlyTweeter wrote:
..
So, its partly about "learning whilst doing". Use a "constructor" (that explains some things) until you are more fluid with them.

There you can see the advantages of the human brain ;)
 
But I'm not sure whether its workable? So many possible combinations?

It's not only the number of possible combinations. ... It's also the "content context" eg:

 - Build a list from tags
 - Build a list from fields

Just to name 2 simple ones. It depends on how the users wants to structure the data.

-mario




@TiddlyTweeter

unread,
Sep 1, 2019, 8:31:34 AM9/1/19
to TiddlyWiki
So, its partly about "learning whilst doing". Use a "constructor" (that explains some things) until you are more fluid with them.

There you can see the advantages of the human brain ;)

My brain failed. Can I have yours?

I often have that strange deja vu feeling looking at filters I have seen them before ... 


TT

A Gloom

unread,
Sep 1, 2019, 7:55:45 PM9/1/19
to TiddlyWiki
' been toying with the concept with my filter code generators (that those visual filter diagram I posted came from) so its possible

A Gloom

unread,
Sep 1, 2019, 8:02:34 PM9/1/19
to TiddlyWiki
the filter expression is generated by the tiddler based on the selection widgers

Clipboard01filter.jpg


@TiddlyTweeter

unread,
Sep 2, 2019, 3:19:25 AM9/2/19
to TiddlyWiki
Ciao Gloom

Ha! Really interesting! 

Looks like it could be a really useful learning tool.

TT

A Gloom

unread,
Sep 2, 2019, 4:25:02 AM9/2/19
to TiddlyWiki
Looks like it could be a really useful learning tool.

That was what I was thinking -- especially the diagrams made for it: Basic filter logic visual chart - https://groups.google.com/forum/?hl=en&fromgroups=#!topic/tiddlywiki/b9xdbfnQyBY

All this will be in WikiWitchery: simple and multiple run visual filters & filter notation generators for tags & fields.  The filter notation generators construct the filter attribute so it can be copied & pasted, but I could have it generate an entire list widget but I thought just the filter attribute was more flexible in that it can be pasted where a filter parameter is used.

Flibbles

unread,
Oct 5, 2019, 2:44:47 PM10/5/19
to TiddlyWiki
In response to your message in that other thread, I'm having trouble visualizing how a dialog or a wizard could help in building filters. Like, maybe something with arrows, or something that provides interactive completion, like as you type in an operand, it gives operand documentation.

That's about all I can see that wouldn't be a humongous endeavor.

A Gloom

unread,
Oct 6, 2019, 2:58:27 AM10/6/19
to TiddlyWiki
In response to your message in that other thread, I'm having trouble visualizing how a dialog or a wizard could help in building filters. Like, maybe something with arrows, or something that provides interactive completion, like as you type in an operand, it gives operand documentation.

As you pointed out it can get complex-- once I get WikiWichery up with its filter code generator (for copying & pasting from) I post a link here so you can see my concept in action-- it borders on too complex uses a reveal button to show the hidden diagram of the filter logic being used in the filter being constructed, but your post got the mind gears going and I have a brillant simpler idea...
Reply all
Reply to author
Forward
0 new messages