Presenting: HackSearch - Find that shadowtid!

447 views
Skip to first unread message

Mat

unread,
Mar 5, 2021, 5:57:30 PM3/5/21
to TiddlyWiki
The rent is too damn high!
And that shadow tiddler is too damn hard to find!

Let TWaddle Labs cast light on your shadowy tiddlers with....

~ Find that shadowtid! ~ 


HackSearch is a plugin for people who hack TW.
It adds a tab in the AdvancedSearch tiddler.
Therein, various system tiddlers are categorized and linked to.

<:-)

David Gifford

unread,
Mar 5, 2021, 9:32:07 PM3/5/21
to TiddlyWiki
Cool! Very helpful! Next version maybe do them as vertical tabs so you can add more like $:/tags and static. But that is not to take away from how useful this is

David Gifford

unread,
Mar 5, 2021, 9:43:00 PM3/5/21
to TiddlyWiki
oh, and added to toolmap, of course

On Friday, March 5, 2021 at 4:57:30 PM UTC-6 Mat wrote:

clutterstack

unread,
Mar 5, 2021, 10:07:29 PM3/5/21
to TiddlyWiki
Nice, Mat! This looks useful and usable!

Best,
Chris

Mohammad Rahmani

unread,
Mar 5, 2021, 11:54:42 PM3/5/21
to tiddl...@googlegroups.com
Nice addition!
Minor comment: Why does it appear under advanced search? It is good to add a search feature to it! 
I know Saq was working on a feature to search in settings so it can be used here too!


Best wishes
Mohammad


--
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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3c308954-4b1b-4b66-ab28-5cf4ae5e05e1n%40googlegroups.com.

Mat

unread,
Mar 6, 2021, 3:05:28 AM3/6/21
to TiddlyWiki
David Gifford wrote:
add more like $:/tags and static.

Could you elaborate a little what would show in such tabs?
Thanx.

<:-)

Mat

unread,
Mar 6, 2021, 3:10:04 AM3/6/21
to TiddlyWiki
Mohammad wrote:
Why does it appear under advanced search?

Where else? It is (kind of) search tool and there is the direct button to Advanced Search to access it.
 
It is good to add a search feature to it!  
I know Saq was working on a feature to search in settings so it can be used here too!

How would a envision that a search feature for it, specifically, differ from the search feature that appears in the AdvancedSearch standard tabs? 

Thanx

<:-)

David Gifford

unread,
Mar 6, 2021, 8:40:57 AM3/6/21
to TiddlyWiki
The shadow tiddlers with $:/tags/ in them, which are way down at the bottom of the shadow list, which I use to reorder the list of buttons and what not

And the shadow tiddlers that have to do with exporting static tiddlers, which often need changes

Also, I posted that before reading on the site about customizing, so feel free to ignore...

Mohammad Rahmani

unread,
Mar 6, 2021, 11:20:51 AM3/6/21
to tiddl...@googlegroups.com
On Sat, Mar 6, 2021 at 11:40 AM Mat <matia...@gmail.com> wrote:
Mohammad wrote:
Why does it appear under advanced search?

Where else? It is (kind of) search tool and there is the direct button to Advanced Search to access it.
 

It seems Control Panel > Info > Advanced has such tabs! but I know this needs many mouse clicks to get there!

 
 
It is good to add a search feature to it!  
I know Saq was working on a feature to search in settings so it can be used here too!

How would a envision that a search feature for it, specifically, differ from the search feature that appears in the AdvancedSearch standard tabs? 

All items can be displayed by default in their respective tabs! Then using a search box you can search by entering a keyword and then limit the result!
Like searching for settings in Android!

This is just my opinion! Ignore where not relevant!

 

Thanx

<:-)

--
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.

Mat

unread,
Mar 7, 2021, 8:13:44 AM3/7/21
to TiddlyWiki
Update: https://hacksearch.tiddlyhost.com/

This now has what @Dave proposed, i.e links to system tags.

@Mohammad - yes a search tool like that would be nice but I feel it is outside the scope of this plugin. Further, IMO for it to be a meaningful thing there should be some way to add keywords to tiddlers without overwriting them because "what exactly should I type into the searchfield to find some system tiddler"? We often need to search for them exactly because we cannot find them easily. I guess some kind of dictionary could be used for such keywords. But now I'm really off topic from my own thread, so don't discuss this more here please ;-)

<:-)

PMario

unread,
Mar 7, 2021, 9:40:50 AM3/7/21
to TiddlyWiki

Mat

unread,
Mar 7, 2021, 9:50:44 AM3/7/21
to TiddlyWiki
PMario wrote:
I think this 2 have a good chance to go into the core:

That is certainly flattering to hear. Yeah, we especially need better tools to manage overwrites  :-)

<:-)

TW Tones

unread,
Mar 8, 2021, 5:56:42 PM3/8/21
to TiddlyWiki
Mat,

I like it, Thanks

I have done something similar but not so elegantly.

Regards
Tones

TiddlyTweeter

unread,
Mar 9, 2021, 5:44:37 AM3/9/21
to TiddlyWiki
Ciao Mat

Whoah! Very useful to have all that in one place!

FYI, in my case, I'll use that whilst "developing" a wiki. 
To help --- quickly --- check what is going on and whether I made mistakes or not!

In a word: USEFUL!

TT

Mat

unread,
Apr 8, 2021, 7:19:05 PM4/8/21
to TiddlyWiki
HackSearch updated!

The main news is a search mechanism that lets you save custom search words for specific tiddlers. Avoid "Gaaah! I can't find it, again!" 

<:-)

Mohammad Rahmani

unread,
Apr 9, 2021, 12:31:48 AM4/9/21
to tiddl...@googlegroups.com
Thank you Mat!

Two ignorable comments
- put version number and date on the first page
- the table in Page tab overflows over the right border of tiddler, may be a max-width:100% could help


Best wishes
Mohammad


--
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.

Stefan Schlechter

unread,
Apr 9, 2021, 2:03:20 AM4/9/21
to TiddlyWiki
Nice Mat!

one minor thing: colour settings nok for tab 'Page', 'Stylesheets' and 'CtrlPanel'

Best,
Stefan

David Gifford

unread,
Apr 9, 2021, 10:38:18 AM4/9/21
to TiddlyWiki
Great updates! Thank you for this wonderful plugin.

On Friday, March 5, 2021 at 4:57:30 PM UTC-6 Mat wrote:

Mat

unread,
Apr 9, 2021, 3:31:16 PM4/9/21
to TiddlyWiki
Update - HackSearch v0.0.9 

Some cleaning up and, especially some stylistic improvements for the previously added SearchDirectory function which was too intrusive previously.

@Mohammad - thanks for input. I added version number on the About page. Not sure about date (where? why?). Also took care of the overflowing tables. BTW, is it understandable why those tabs (i.e View, Edit and Page) have tables with one side showing links and the other plain text?

@S² - You wrote "colour settings nok for tab 'Page', 'Stylesheets' and 'CtrlPanel'" - What does "nok" mean... and actually, what is it you're requesting? I don't understand so please elaborate a bit.

Everybody, thanks for feedback and encouragement.

<:-)

unread,
Apr 10, 2021, 2:49:58 PM4/10/21
to TiddlyWiki
Hello Mat,

I mean, background colour for the 3 mentioned tabs are different to the other tabs:

Tabs.png
Regards
Stefan

Mohammad Rahmani

unread,
Apr 10, 2021, 3:33:54 PM4/10/21
to tiddl...@googlegroups.com
On Sat, Apr 10, 2021 at 12:01 AM Mat <matia...@gmail.com> wrote:
Update - HackSearch v0.0.9 

Some cleaning up and, especially some stylistic improvements for the previously added SearchDirectory function which was too intrusive previously.

@Mohammad - thanks for input. I added version number on the About page. Not sure about date (where? why?). Also took care of the overflowing tables. BTW, is it understandable why those tabs (i.e View, Edit and Page) have tables with one side showing links and the other plain text?

Many thanks for the new update! The version number is informative enough

@S² - You wrote "colour settings nok for tab 'Page', 'Stylesheets' and 'CtrlPanel'" - What does "nok" mean... and actually, what is it you're requesting? I don't understand so please elaborate a bit.

Everybody, thanks for feedback and encouragement.

<:-)
On Friday, April 9, 2021 at 4:38:18 PM UTC+2 David Gifford wrote:
Great updates! Thank you for this wonderful plugin.

On Friday, March 5, 2021 at 4:57:30 PM UTC-6 Mat wrote:
The rent is too damn high!
And that shadow tiddler is too damn hard to find!

Let TWaddle Labs cast light on your shadowy tiddlers with....

~ Find that shadowtid! ~ 


HackSearch is a plugin for people who hack TW.
It adds a tab in the AdvancedSearch tiddler.
Therein, various system tiddlers are categorized and linked to.

<:-)

--
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.

Mat

unread,
Apr 12, 2021, 8:55:09 PM4/12/21
to TiddlyWiki
Update - HackSearch v 0.0.10

Nothing big, mostly stylistic tweaks.

@S² - hopefully your points have been taken care of.

Mohammad Rahmani

unread,
Apr 12, 2021, 11:28:14 PM4/12/21
to tiddl...@googlegroups.com
Lovely! Thank you Mat!



Best wishes
Mohammad


--
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.

unread,
Apr 14, 2021, 4:17:23 AM4/14/21
to TiddlyWiki
Nice! Thank you Mat!

Greetings
Stefan

TiddlyTweeter

unread,
Apr 14, 2021, 5:24:09 AM4/14/21
to TiddlyWiki
Ciao Mat

Brilliantly USEFUL piece on work! I'm using it already.

There is ONE thing missing that could be a Godsend. FIND a macro???

A BIG issue for a developer using other peoples code is simply finding "in WHICH Tiddler does that macro live?"

I can probably find code already written to do that IF you think it would be worth adding a tab for that.
Let me know if you are interested!

Very best wishes (& thanks),
TT

Mat

unread,
Apr 14, 2021, 8:13:40 AM4/14/21
to TiddlyWiki
Thanks for encouragement everyone.

@TiddlyTweeter wrote:
There is ONE thing missing that could be a Godsend. FIND a macro???

I agree, and that is actually exactly what I'm fiddling with! But I'm not sure exactly how to approach it. The problem is not the coding but that several macros are just not meant for end users. A prime example are various "sub macros" only meant to support a main macro. In the core, many of these are titled xxx-inner but I suspect many are not. And for communty created plugins, there's of course no consistency at all to name submacros.

Futher, there are well over 200 core macros so the list is too long. The "public" core macros are just these (ca 35).

So I'm thinking of a two list display (like in the SysTags tab) with common macros + a separate complete list where you can "checkbox" macros to add them to the common list. I figure it'd be nice if one can add custom comments about what various macros do. I.e they're presented in a table showing the macro name + its parameter list + an editor for comments. Any thoughts on this?

Maybe the macros should be findable via some search mechanism... using the SearchDirectory feature... but then a simple dictionary list might not work because that is just for direct search terms rather than descriptions. I don't have a clear idea how to implement this bit though so maybe that's for a later date.

<:-)

Mohammad Rahmani

unread,
Apr 14, 2021, 8:31:06 AM4/14/21
to tiddl...@googlegroups.com
On Wed, Apr 14, 2021 at 4:43 PM Mat <matia...@gmail.com> wrote:
Thanks for encouragement everyone.

@TiddlyTweeter wrote:
There is ONE thing missing that could be a Godsend. FIND a macro???

I agree, and that is actually exactly what I'm fiddling with! But I'm not sure exactly how to approach it. The problem is not the coding but that several macros are just not meant for end users. A prime example are various "sub macros" only meant to support a main macro. In the core, many of these are titled xxx-inner but I suspect many are not. And for communty created plugins, there's of course no consistency at all to name submacros.

That is quite true! I like very much to have some kind of good programming styles, some recommendations!


 

Futher, there are well over 200 core macros so the list is too long. The "public" core macros are just these (ca 35).

So I'm thinking of a two list display (like in the SysTags tab) with common macros + a separate complete list where you can "checkbox" macros to add them to the common list. I figure it'd be nice if one can add custom comments about what various macros do. I.e they're presented in a table showing the macro name + its parameter list + an editor for comments. Any thoughts on this?

Maybe the macros should be findable via some search mechanism... using the SearchDirectory feature... but then a simple dictionary list might not work because that is just for direct search terms rather than descriptions. I don't have a clear idea how to implement this bit though so maybe that's for a later date.

<:-)

--
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.

TiddlyTweeter

unread,
Apr 14, 2021, 9:59:11 AM4/14/21
to TiddlyWiki
Ciao Mat, 
   Great you are interested in this!

The ONLY concrete real comment I have is that, IN PRACTICE, is 92.5% of the time, I want to track down ONE macro, and nothing more than that (to be exposed to all macros is NOT really useful to me, in fact that forest loses me!). 

MY issue is only to find in WHICH Tiddler a specific Macro is in. 
Full stop.

Not sure if that helps? 
But it is a de-limited thing I need. Simply searching to find a (one) named \define XYZ(...).

Not sure what others need. But that is all I need.

> Mat: Maybe the macros should be findable via some search mechanism

Right. I think it has been done? 
Maybe Mohammad already has the code to do that?

Thoughts
TT

Mat

unread,
Apr 14, 2021, 10:25:14 AM4/14/21
to TiddlyWiki
TiddlyTweeter wrote:
[...]I want to track down ONE macro, and nothing more than that (to be exposed to all macros is NOT really useful to me, in fact that forest loses me!). 

Yes, but what search terms do you use for searching if you don't know the name of that macro? You cannot reasonably search it by typing in wikitext commands that the macro consists of. Instead, one would want to type in descriptive terms to find macros but, beyond a descriptive macro name, such terms are not automatically connected to the macro. Showing a list of macros at least lets you skim through them...

The HackSearch "SearchDirectory" feature would enable such descriptive terms to be connected to specific macros in the dictionary, BUT I don't know what good descriptive words that would be appropriate for each respective macro. Maybe the community could do it collectively, probably relying on a lot of help from the core team that are familiar with the core macros, but it still would not let you find e.g community developed macros unless they are also manually added to the dictionary. But, of course, if you have a recurring set of macros that you know you search for then it is simple to (already now!) include them in the SearchDirectory dictionary - just add a row, e.g for the color macro it could be:

colour: color coloring styling style styles css CSS

<:-)

Mohammad Rahmani

unread,
Apr 14, 2021, 11:57:09 AM4/14/21
to tiddl...@googlegroups.com
Hi TT and Mat,




On Wed, Apr 14, 2021 at 6:29 PM TiddlyTweeter <Tiddly...@assays.tv> wrote:
Ciao Mat, 
   Great you are interested in this!

The ONLY concrete real comment I have is that, IN PRACTICE, is 92.5% of the time, I want to track down ONE macro, and nothing more than that (to be exposed to all macros is NOT really useful to me, in fact that forest loses me!). 

MY issue is only to find in WHICH Tiddler a specific Macro is in. 
Full stop.

Not sure if that helps? 
But it is a de-limited thing I need. Simply searching to find a (one) named \define XYZ(...).

Not sure what others need. But that is all I need.

> Mat: Maybe the macros should be findable via some search mechanism

Right. I think it has been done? 
Maybe Mohammad already has the code to do that?

A spy tool is show-macros from Utility plugins

Example

3. Create a tiddler with below code

<$list filter="[all[tiddlers+shadows]tag[$:/tags/Macro]]">
<h2><$link/></h2>
<<show-macro>>
</$list>

Save and see all global macros with links to their tiddlers!
Small issue: show-macro can confuse with macro with no \end 




 


Thoughts
TT

On Wednesday, 14 April 2021 at 14:13:40 UTC+2 Mat wrote:
Thanks for encouragement everyone.

@TiddlyTweeter wrote:
There is ONE thing missing that could be a Godsend. FIND a macro???

I agree, and that is actually exactly what I'm fiddling with! But I'm not sure exactly how to approach it. The problem is not the coding but that several macros are just not meant for end users. A prime example are various "sub macros" only meant to support a main macro. In the core, many of these are titled xxx-inner but I suspect many are not. And for communty created plugins, there's of course no consistency at all to name submacros.

Futher, there are well over 200 core macros so the list is too long. The "public" core macros are just these (ca 35).

So I'm thinking of a two list display (like in the SysTags tab) with common macros + a separate complete list where you can "checkbox" macros to add them to the common list. I figure it'd be nice if one can add custom comments about what various macros do. I.e they're presented in a table showing the macro name + its parameter list + an editor for comments. Any thoughts on this?

Maybe the macros should be findable via some search mechanism... using the SearchDirectory feature... but then a simple dictionary list might not work because that is just for direct search terms rather than descriptions. I don't have a clear idea how to implement this bit though so maybe that's for a later date.

<:-)

--
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.

PMario

unread,
Apr 14, 2021, 1:53:34 PM4/14/21
to TiddlyWiki
On Wednesday, April 14, 2021 at 3:59:11 PM UTC+2 TiddlyTweeter wrote:

Not sure if that helps? 
But it is a de-limited thing I need. Simply searching to find a (one) named \define XYZ(...).

Hi, I think advance-search-plus can do that easily. see: https://wikilabs.github.io/editions/advanced-search-plus/

If you put the following search string into the FILTER search tab you'll get 4 resulting titles. 3 of the are system tiddlers, but the list is short ;)

[all[]search[\define your-macro-name ]]

If you don't want to see the temps use:

[all[]search[\define your-macro-name ]] -[prefix[$:/temp]] -[prefix[$:/search-]]

Save this configuration any you will have it at hand.

have fun!
maro

PMario

unread,
Apr 14, 2021, 2:04:31 PM4/14/21
to TiddlyWiki
@Mat

The "advanced search plus" plugin has a placeholder tab since quite some time now.

advanced-search-tab.gif

I would like to steal some of your ideas, and place them there. ... I'd add a prominent link to your plugin with eg: Learn more at: Hackserach

I don't want to add "knowledge" into the plugin as you did. I want to create actions, that will "prefill" the advanced-search tab, so the user can modify them and save them. It would mainly be a "cheat sheet" for myself ;)

What do you think!

-mario

TiddlyTweeter

unread,
Apr 14, 2021, 2:38:36 PM4/14/21
to TiddlyWiki
PMario wrote
If you don't want to see the temps use:

[all[]search[\define your-macro-name ]] -[prefix[$:/temp]] -[prefix[$:/search-]]

That is EXACTLY it. Thanks! very useful!

Some of us just don't know how to apply filter syntax! :-( But that SOLVES my issue!

Best wishes
TT


Mat

unread,
Apr 14, 2021, 3:06:53 PM4/14/21
to TiddlyWiki
PMario wrote:
I would like to steal some of your ideas, and place them there. ... I'd add a prominent link to your plugin with eg: Learn more at: Hackserach

Mario - you're one of our most generous members so I wish I could say I give "special permission" for you - but, actually, anyone is welcome to take whatever they want from my stuff for things that benefit our little community. Besides, it is very flattering that you like my stuff.

I don't want to add "knowledge" into the plugin as you did. I want to create actions, that will "prefill" the advanced-search tab, so the user can modify them and save them. It would mainly be a "cheat sheet" for myself ;)

Will be interesting to see. 

<:-)

Mat

unread,
Apr 14, 2021, 3:11:53 PM4/14/21
to TiddlyWiki
TiddlyTweeter wrote:
[all[]search[\define your-macro-name ]] -[prefix[$:/temp]] -[prefix[$:/search-]]

That is EXACTLY it. Thanks! very useful!

Aha, now I understand what you were after. It's for the times you know the macro name but just want to know where it resides. I typically just search like so in the advanced search 

macroname(

i.e to find the definition tiddler for it I include the first parenthesis.

<:-)
Reply all
Reply to author
Forward
0 new messages