Discussion:
[tw5] Plugin / Pull Request: Comined Search: Find system + shadow tiddlers, use filters in simple search
(too old to reply)
bimlas
2018-11-14 18:47:54 UTC
Permalink
What do you think? Is it usefull enough to let it in the core?

Regular search (nothing new, just want to show the current
behaviour): Loading Image...
Find system + shadow tiddlers: Loading Image...
Search by filters: Loading Image...

Note: The "Filter error: Missing closing bracket in filter expression" is
not shown at all.

To achieve this behaviour, rewrite the contents of
$:/core/ui/DefaultSearchResultList with this:

\define filterExpression() {{$(searchTiddler)$}} +[limit[$(resultsLimit)$]]

\define filterSearch()

<$wikify name="transcludedFilterExpression" text=<<filterExpression>> >
<$list filter=<<transcludedFilterExpression>> template=
"$:/core/ui/ListItemTemplate"/>
</$wikify>

\end
\define regularSearch(scope)

//<small>{{$:/language/Search/Matches/Title}}</small>//

<$list filter=
"[$scope$search:title{$(searchTiddler)$}sort[title]limit[$(resultsLimit)$]]"
template="$:/core/ui/ListItemTemplate"/>

//<small>{{$:/language/Search/Matches/All}}</small>//

<$list filter=
"[$scope$search{$(searchTiddler)$}sort[title]limit[$(resultsLimit)$]]"
template="$:/core/ui/ListItemTemplate"/>

\end
\define searchResultList()

<$list filter="[{$(searchTiddler)$}prefix[[]]">

//''<small>{{$:/language/Search/Filter/Caption}}</small>''//

<<filterSearch>>

</$list>

<$list filter="[{$(searchTiddler)$}prefix[$:/]]">

//''<small>{{$:/language/Search/System/Caption}} + {{$:/language/Search/
Shadows/Caption}}</small>''//

<<regularSearch "all[system+shadows]">>

</$list>

<$list filter="[{$(searchTiddler)$}!prefix[[]!prefix[$:/]]">

<<regularSearch "!is[system]">>

</$list>

\end
<$vars resultsLimit="250">
<<searchResultList>>
</$vars>
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/66dee473-81f2-4849-9944-e3718abfad0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Mark S.' via TiddlyWiki
2018-11-14 21:00:45 UTC
Permalink
That would be a handy improvement on the standard search. The one thing is
that it might require a different character limit. The standard default is
3 characters, but if you type in $:/ you've already met that limit and are
exposed to a massive result list.

Somewhere down the line, it would be great if TW could save your searches
(like in other search engines) so you could quickly go back to a prior
search.

-- Mark
Post by bimlas
What do you think? Is it usefull enough to let it in the core?
https://i.imgur.com/ovBjJeV.png
Find system + shadow tiddlers: https://i.imgur.com/yMTWt5d.png
Search by filters: https://i.imgur.com/xIXtmn6.png
Note: The "Filter error: Missing closing bracket in filter expression" is
not shown at all.
To achieve this behaviour, rewrite the contents of
\define filterExpression() {{$(searchTiddler)$}} +[limit[$(resultsLimit)$
]]
\define filterSearch()
<$wikify name="transcludedFilterExpression" text=<<filterExpression>> >
<$list filter=<<transcludedFilterExpression>> template=
"$:/core/ui/ListItemTemplate"/>
</$wikify>
\end
\define regularSearch(scope)
//<small>{{$:/language/Search/Matches/Title}}</small>//
<$list filter=
"[$scope$search:title{$(searchTiddler)$}sort[title]limit[$(resultsLimit)$]]"
template="$:/core/ui/ListItemTemplate"/>
//<small>{{$:/language/Search/Matches/All}}</small>//
<$list filter=
"[$scope$search{$(searchTiddler)$}sort[title]limit[$(resultsLimit)$]]"
template="$:/core/ui/ListItemTemplate"/>
\end
\define searchResultList()
<$list filter="[{$(searchTiddler)$}prefix[[]]">
//''<small>{{$:/language/Search/Filter/Caption}}</small>''//
<<filterSearch>>
</$list>
<$list filter="[{$(searchTiddler)$}prefix[$:/]]">
//''<small>{{$:/language/Search/System/Caption}} + {{$:/language/Search/
Shadows/Caption}}</small>''//
<<regularSearch "all[system+shadows]">>
</$list>
<$list filter="[{$(searchTiddler)$}!prefix[[]!prefix[$:/]]">
<<regularSearch "!is[system]">>
</$list>
\end
<$vars resultsLimit="250">
<<searchResultList>>
</$vars>
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/aa01b5c3-a1e3-4230-b5f1-f74e6710440b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bimlas
2018-11-14 21:12:37 UTC
Permalink
The problem with the minimum character is also apparent to me, the solution
would be to ignore the length of the prefix, but the length of the search
term is managed at another level - it would require more serious
intervention.

I do not really understand the purpose of the search history. Could you
give a practical example of where it would be useful? Is the $:/tags/Filter
<https://tiddlywiki.com/prerelease/#SystemTag%3A%20%24%3A%2Ftags%2FFilter>
tag not enough to solve this problem?

2018. november 14., szerda 22:00:45 UTC+1 időpontban Mark S. a következőt
Post by 'Mark S.' via TiddlyWiki
That would be a handy improvement on the standard search. The one thing
is that it might require a different character limit. The standard default
is 3 characters, but if you type in $:/ you've already met that limit and
are exposed to a massive result list.
Somewhere down the line, it would be great if TW could save your searches
(like in other search engines) so you could quickly go back to a prior
search.
-- Mark
Post by bimlas
What do you think? Is it usefull enough to let it in the core?
https://i.imgur.com/ovBjJeV.png
Find system + shadow tiddlers: https://i.imgur.com/yMTWt5d.png
Search by filters: https://i.imgur.com/xIXtmn6.png
Note: The "Filter error: Missing closing bracket in filter expression" is
not shown at all.
To achieve this behaviour, rewrite the contents of
\define filterExpression() {{$(searchTiddler)$}} +[limit[$(resultsLimit)$
]]
\define filterSearch()
<$wikify name="transcludedFilterExpression" text=<<filterExpression>> >
<$list filter=<<transcludedFilterExpression>> template=
"$:/core/ui/ListItemTemplate"/>
</$wikify>
\end
\define regularSearch(scope)
//<small>{{$:/language/Search/Matches/Title}}</small>//
<$list filter=
"[$scope$search:title{$(searchTiddler)$}sort[title]limit[$(resultsLimit)$]]"
template="$:/core/ui/ListItemTemplate"/>
//<small>{{$:/language/Search/Matches/All}}</small>//
<$list filter=
"[$scope$search{$(searchTiddler)$}sort[title]limit[$(resultsLimit)$]]"
template="$:/core/ui/ListItemTemplate"/>
\end
\define searchResultList()
<$list filter="[{$(searchTiddler)$}prefix[[]]">
//''<small>{{$:/language/Search/Filter/Caption}}</small>''//
<<filterSearch>>
</$list>
<$list filter="[{$(searchTiddler)$}prefix[$:/]]">
//''<small>{{$:/language/Search/System/Caption}} + {{$:/language/Search/
Shadows/Caption}}</small>''//
<<regularSearch "all[system+shadows]">>
</$list>
<$list filter="[{$(searchTiddler)$}!prefix[[]!prefix[$:/]]">
<<regularSearch "!is[system]">>
</$list>
\end
<$vars resultsLimit="250">
<<searchResultList>>
</$vars>
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/deade97c-3911-4847-ad4f-2cd6631bf0c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thomas Elmiger
2018-11-14 21:16:04 UTC
Permalink
Mark,

This is a good point, partially covered in Advanced Search:

Somewhere down the line, it would be great if TW could save your searches
Post by 'Mark S.' via TiddlyWiki
(like in other search engines) so you could quickly go back to a prior
search.
You can store filter searches in the dropdown menu using $:/tags/Filter –
but only for filters. And you have to do it yourself. It would be really
great if TW would

- offer such dropdowns or suggestions in all modes
- register recent searches automagically

-- Thomas
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/1820ca69-4863-47fd-b909-90c178189c5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thomas Elmiger
2018-11-14 21:10:53 UTC
Permalink
Hi Bimlas,

Honestly, I did not try* your solution but looked at your screenshots.
Thanks for your suggestion, we are in the same boat, trying to improve
searching TW.
My feedback on first sight:

- Counting results: Your filter search shows a counter with zero results
(instead of 7), system & shadows counts 6 instead of 7.
- Filter search: How would I search for (e.g. standard) tiddlers
*containing* a certain filter (as text)? Which leads to the next point:
- Search mode: Is it possible to switch search mode somehow like in
Advanced Search?
- Hints on filter errors: I appreciate them and would miss them ...

Advanced Search in TW is just one or two clicks/taps or key strokes away
from standard TW search. So I am sorry to say, this would not be an
improvement for me. Just advanced features merged into a simple search, but
with less control and less meta info.

* I am happy with my own plugin Simple Search
<https://tid.li/tw5/plugins.html> :)

Cheers & keep on improving!
Thomas
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/683e1bb0-265f-4b85-a874-ac5a61ae854f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bimlas
2018-11-14 21:43:26 UTC
Permalink
Hi Thomas,
Honestly, I did not try* your solution but looked at your screenshots. ...
I am happy with my own plugin Simple Search
Here's a demo: https://bimlas.gitlab.io/demo/tw5/combined-search.html

Just tried out to install in to your wiki - it works well with your plugin.
:)
- Counting results: Your filter search shows a counter with zero
results (instead of 7), system & shadows counts 6 instead of 7.
The counter is defined elsewhere - if I actually make a pull request or a
plugin, I have to modify it too. Thanks for the remark!
- Filter search: How would I search for (e.g. standard) tiddlers
*containing* a certain filter (as text)?
Just add a leading space to the filter (`[tag[$:/tags/Macro]]` behaves
filter, while ` [tag[$:/tags/Macro]]` is a regular search).
- Search mode: Is it possible to switch search mode somehow like in
Advanced Search?
I do not quite understand what you mean: the prefix determines the mode
($: / - system + shadows; [... - filter]. If you need more precise search,
you can still use Advanced Search.
- Hints on filter errors: I appreciate them and would miss them ...
I will fix it when it comes to plugin or PR.
Advanced Search in TW is just one or two clicks/taps or key strokes away
from standard TW search. So I am sorry to say, this would not be an
improvement for me. Just advanced features merged into a simple search, but
with less control and less meta info.
Maybe you're right, but I'm just bothering to click: if I need to search
for a shadow, I have to go into Advanced Search and switch to the Shadows
tab. Why is this necessary if we already have a search bar in the sidebar?
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/faf05f93-d218-4235-b5bc-5ca54ff74ffb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PMario
2018-11-14 21:51:22 UTC
Permalink
Hi,

Nice stuff! --- but ---

I think, this should be a plugin. We do have the Advanced search, which has
an interface, where it is clear, what you get.

Testing your code with $:/core returns an unusable list of results. IMO it
would be confusing for "standard" users.

just my thoughts.
mario
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/be4af471-3b0d-4db9-bb99-f5b3fae72ad4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bimlas
2018-11-14 22:03:12 UTC
Permalink
Hi PMario,
Post by PMario
I think, this should be a plugin. We do have the Advanced search, which
has an interface, where it is clear, what you get.
That's why I put it for the first time in the forum: I'm not sure that this
would be "standard".

I originally wanted to embed Advanced Search into the sidebar (instead of
the standard search), which can be done with prerelease, but the results
are not a dropdown list, which is bad. Then came the idea that the search
term determines the subject of the search.

Anyway, this is probably just a plugin. Thanks for the comments!
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/601ec0c6-12a7-427d-8813-5e4835a718a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Diego Mesa
2018-11-14 22:31:08 UTC
Permalink
Hello all,

As usual Bimlas beautiful work. I disagree with Mario - I dont think this
would confuse new users, and should be a part of the core. There seems to
be a big wave at NOT changing the way TW works, but in my experience trying
to onboard many new people onto TW there is A LOT of confusion as to how
things work in TW. And search is definitely one of those things.
Post by bimlas
Hi PMario,
Post by PMario
I think, this should be a plugin. We do have the Advanced search, which
has an interface, where it is clear, what you get.
That's why I put it for the first time in the forum: I'm not sure that
this would be "standard".
I originally wanted to embed Advanced Search into the sidebar (instead of
the standard search), which can be done with prerelease, but the results
are not a dropdown list, which is bad. Then came the idea that the search
term determines the subject of the search.
Anyway, this is probably just a plugin. Thanks for the comments!
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/a2e8944b-b550-4860-937b-ea68dbdcb2a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bimlas
2018-11-14 22:39:32 UTC
Permalink
Hi Diego,

There seems to be a big wave at NOT changing the way TW works
I agree that everything should be in the core, which is why TiddlyWiki did
not break even in 20 years.

I do not know, for example, that Jeremy likes the idea, but if it does not
get into the core, the documentation can still contain a link to it. :)
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/f3c99233-1c73-41de-90ac-87097d106605%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bimlas
2018-11-14 22:40:09 UTC
Permalink
Sorry, Google Translate: I agree that NOT everything should be in the
core...
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/1e7b7ad9-68ee-47c5-84cd-0ceeed118016%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Diego Mesa
2018-11-15 02:00:45 UTC
Permalink
I dont want to hijack this thread - I think your plugin is great and I
think it should be part of the core

Ill end by saying this: There is a tension between having TW work well for
20 years for 20,000 people over the world, and having TW work well for 2
years for 2 million people all over the world.
Post by bimlas
Sorry, Google Translate: I agree that NOT everything should be in the
core...
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/8562e463-8f93-4e9e-9ed4-20f9010c76e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
TonyM
2018-11-15 03:35:42 UTC
Permalink
On the subject of adding to the core,

Remember such things could be part of the core plugins, In Get more
plugins, as codemirror currently is. Or even in the empty distribution, but
removable.

No need to bloat the minimum which could be used for anything and not need
such features.

On ANY search result, it would lovely to be able to one click save it in a
list, perhaps even better tag them all, then it would be easy to step
through each found tiddler and add or remove items from the list. Being
able to use multiple searches to create one tagged list would be fantastic.
And even better if this would be an add or remove filter.

Lists, search and tagging are fundamental features so why not provide the
facility to combine them?

Personalty I want the following things I do not yet have in a search box in
the sidebar

- A search that will also list System tiddlers
- A Search which is like TWC go to that only searches on title
- The ability to copy the tiddler title wrapped [[as required]] from the
search results list
- The possibility to open for edit a tiddler from the search list
without viewing it first (in case its causing a fault)
- Saving search results as previously mentioned.

Regards
Tony
Post by bimlas
What do you think? Is it usefull enough to let it in the core?
https://i.imgur.com/ovBjJeV.png
Find system + shadow tiddlers: https://i.imgur.com/yMTWt5d.png
Search by filters: https://i.imgur.com/xIXtmn6.png
Demo: https://bimlas.gitlab.io/demo/tw5/combined-search.html
Note: The "Filter error: Missing closing bracket in filter expression" is
not shown at all.
To achieve this behaviour, rewrite the contents of
\define filterExpression() {{$(searchTiddler)$}} +[limit[$(resultsLimit)$
]]
\define filterSearch()
<$wikify name="transcludedFilterExpression" text=<<filterExpression>> >
<$list filter=<<transcludedFilterExpression>> template=
"$:/core/ui/ListItemTemplate"/>
</$wikify>
\end
\define regularSearch(scope)
//<small>{{$:/language/Search/Matches/Title}}</small>//
<$list filter=
"[$scope$search:title{$(searchTiddler)$}sort[title]limit[$(resultsLimit)$]]"
template="$:/core/ui/ListItemTemplate"/>
//<small>{{$:/language/Search/Matches/All}}</small>//
<$list filter=
"[$scope$search{$(searchTiddler)$}sort[title]limit[$(resultsLimit)$]]"
template="$:/core/ui/ListItemTemplate"/>
\end
\define searchResultList()
<$list filter="[{$(searchTiddler)$}prefix[[]]">
//''<small>{{$:/language/Search/Filter/Caption}}</small>''//
<<filterSearch>>
</$list>
<$list filter="[{$(searchTiddler)$}prefix[$:/]]">
//''<small>{{$:/language/Search/System/Caption}} + {{$:/language/Search/
Shadows/Caption}}</small>''//
<<regularSearch "all[system+shadows]">>
</$list>
<$list filter="[{$(searchTiddler)$}!prefix[[]!prefix[$:/]]">
<<regularSearch "!is[system]">>
</$list>
\end
<$vars resultsLimit="250">
<<searchResultList>>
</$vars>
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/81d69e61-5632-4ee5-b388-8588d1d8cbf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bimlas
2018-11-15 23:31:59 UTC
Permalink
I hope you like it :)

https://bimlas.gitlab.io/demo/tw5/combined-search-for-tonym.html

Feel free to ask for modifications if something is different from your
"requirements".
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/8612d852-a691-4c05-b602-00400054451e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
TonyM
2018-11-16 00:22:17 UTC
Permalink
Bimlas,

Thanks so much, its beautiful. Fast

I cant wait for the 5.1.18 release to be come General availability, I am
reluctant to upgrade some of my key wikis until this is so.

Regards
Tony
Post by bimlas
I hope you like it :)
https://bimlas.gitlab.io/demo/tw5/combined-search-for-tonym.html
Feel free to ask for modifications if something is different from your
"requirements".
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/5cb91f92-cd92-4c88-ab53-6c82ec65e167%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bimlas
2018-11-16 06:41:51 UTC
Permalink
I added a stylesheet to show the buttons with the list item in the same row
($:/bimlas/combined-search/stylesheet-for-tonym).

I forgot to mention that it works with 5.1.17, not just prerelease.
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/7e86b9ff-e82e-47ab-a621-848736be3a41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bimlas
2018-11-16 06:57:02 UTC
Permalink
Another improvement: moved the "regular" tiddlers to the top of the list,
system and shadows are on the bottom (if you don't need to search for
shadows, you can remove them from the search query of course).
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/80f288d5-7835-4ea0-a29d-0893803d1d55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bimlas
2018-11-15 06:41:57 UTC
Permalink
Search history seems to be a more lacking feature than a combined search.

I was thinking how to do it. The browser saves the input in the search
history when you press Enter, but Tiddly does not need it because it keeps
updating the list of results continously.

A solution could be a timer such as $:/config/Drafts/TypingTimeout
<https://tiddlywiki.com/#Hidden%20Setting%3A%20Typing%20Refresh%20Delay>:
after the last typed character after X time adds the current input to the
search history, the first 3 history could appear at the beginning of the
list of results. I'm not sure whether the history should be in advanced
search, for example, exporting tiddlers would want to export search history
as well, but it's just a list of strings, not tiddlers.

Concept art: Loading Image...

What do you think of this idea?
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/5c4d2138-6982-4e84-bba2-964ab8ed744e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bimlas
2018-11-15 07:52:11 UTC
Permalink
I've found the already existing way to easily use Advanced Search in
standard search: it *displays various lists in tabs*.

See the demo
at https://bimlas.gitlab.io/demo/tw5/combined-search-by-tabs.html
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/493b6777-06f3-42bc-ae71-e6bb7729fdf6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bimlas
2018-11-15 08:37:46 UTC
Permalink
Just fixed some bugs:


- Search by title and content was the same (?!), beacuse I uses `is[]`
everywhere, while `shadows` needs `all` (weird,
see https://gitlab.com/bimlas/demo/blob/9794dbe2a6856d484a4bf4478f75b0261d36d256/public/tw5/combined-search-by-tabs.html
for previous, buggy version)
- Reordered the tabs to look like advanced search
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/03db1c97-3359-4e02-b330-f38df5a01995%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
HC Haase
2018-11-15 09:59:42 UTC
Permalink
This is cool. I can see this being very useful or maybe not at all - I will
have to wait and see if this solves a problem I didn't knew I had.

However In my advanced search I frequently use TobaisÂŽ in fields search.
this is very useful as it search and list all fields.

I have made a crude search and replace version of tobiasÂŽ field search, to
include it in your combined search. I don't think it mess up any thing, but
as an amateur I don't know.


But now I am not sure how to name this. $:/.tb/ or $:/bimlas/

Anyway If anyone else is interested here it is.
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/ecc46d00-57ff-4422-9ec5-cbf15437442b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bimlas
2018-11-15 10:10:15 UTC
Permalink
Probably your name suits the best for prefix of your own "plugins": name it
$:/.hchaase for example. :)

As I see, you just using the $:/tags/SearchResults from my "plugin": it's
not my invention, it's a builtin feature,
see https://tiddlywiki.com/#Customising%20search%20results
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/06230afe-7811-4534-abd2-f61cbdef3bad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
TonyM
2018-11-15 11:12:05 UTC
Permalink
Bimlas,

Very nice, once again.

Thanks
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/f8052bac-e3d1-4c87-906e-91acb9650f0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bimlas
2018-11-15 22:29:27 UTC
Permalink
I've added a new tab that allows you to search for
tags: https://bimlas.gitlab.io/demo/tw5/combined-search-by-tabs.html

I think this one could be in the core, because the tags are densely used
and currently there is no built-in tag search, just the MoreSidebar tags
tab (try to import $:/bimlas/combined-search/tags into
https://tiddlywiki.com/ to see what I mean).
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/f9035260-4a23-44f3-a251-953efcf97ef4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
HC Haase
2018-11-29 07:18:02 UTC
Permalink
Hi bimlas

I find your "stylsheed for tony" with the buttons next to the search
result, quite nice (I only use the buttons part in combination with the
tabbed combined search). However if you use the "insert link" button in
edit mode of a tiddler you get these big grey buttons stacked on top of the
search result - Not looking nice. (screenshot from your demo page).
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/84623d93-be7d-42bd-b7c6-4ef1a7b29bf6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
HC Haase
2018-11-29 07:21:08 UTC
Permalink
would you consider to make this a plugin? It gets quite confusing what
function/bug comes from where, when you have many plugin and custom
modifications (like this). If packaged as a plugin it is much easier to
turn things off when searching for bugs.
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/1561ce5e-3b99-4f9b-831b-f2a15764b8c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bimlas
2018-12-04 06:50:43 UTC
Permalink
@HC Haase: Sorry for late reply, I corrected the mistake, grab
$:/bimlas/combined-search/stylesheet-for-tonym from
https://bimlas.gitlab.io/demo/tw5/combined-search-for-tonym.html.

The problem is that the buttons are not designed to appear in dropdown
lists, therefore, it is not certain that this is the best solution for
placing the "action buttons".

I plan to implement a similar behaviour, but not by puting buttons on every
list item, so I do not release this (combined-search-for-tonym.html) as a
plugin.
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/03c10627-5748-4097-a026-8f2c39e7a542%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
HC Haase
2018-12-04 09:16:34 UTC
Permalink
thanks
Post by bimlas
I plan to implement a similar behaviour, but not by puting buttons on
every list item, so I do not release this (combined-search-for-tonym.html)
as a plugin.
Looking forward to this
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/b99df38a-cc3a-4af9-9155-333ed46530e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...