New release: Locator 1.2.0 (search by tags, ToC showing related tags)

297 views
Skip to first unread message

bimlas

unread,
Jul 8, 2019, 6:54:18 AM7/8/19
to TiddlyWiki
Dear all,

I'm launching 1.2.0 version of the Locator plugin (discover and search by related tags).

* Add button to create new tiddler in current context
* Ability to use additional filter on tags


Add button to create new tiddler in current context: For example, on the demo page you are browsing Larry's cookbook and looking for bread-related breakfast. You realize that the new recipe that you were looking for was not written, so you have to create the tiddler. To avoid having to enter the tags separately, you can use the Locator to pre-tag the tiddler.


vivaldi_2019-07-08_12-49-31.png


bimlas

unread,
Jul 8, 2019, 11:16:38 AM7/8/19
to TiddlyWiki
It was not pre-designed, but with a minimal change, I was able to create new tiddler from search text (the search text becomes the default title of the new tiddler), so I created another release, 1.3.0.

TonyM

unread,
Jul 8, 2019, 11:36:06 PM7/8/19
to TiddlyWiki
Bimlas,

I only just started to look at this and it seems you have made another great contribution. However it is a little hard from  my view to actually understand the features and possibilities. Perhaps we need a short introduction that describes basic functionality before we read the details.

I am not yet in a position to do this as I am still trying to work out how to use it. I am sure its my own problem but I hope we can make it a little easier so we can get your work adopted more.

Thanks
Tony

bimlas

unread,
Jul 9, 2019, 3:34:36 AM7/9/19
to TiddlyWiki
TonyM,

You are not the only one who does not fully understand the plugin. Recently it has been indicated by others, so I definitely create a tutorial (I hope today). In the meantime, I tried to improve the documentation and fixed a small bug, I hope it has become clearer.

TonyM

unread,
Jul 9, 2019, 3:49:46 AM7/9/19
to TiddlyWiki
Bimlas,

You may find putting tooltips on your buttons in the sidebar, that says what pressing that button does, will help.

Something in your text or example still confuses me, sorry, I need to be honest because you work deserves attention.

Regards
Tony

TonyM

unread,
Jul 9, 2019, 3:56:10 AM7/9/19
to TiddlyWiki
I am starting to understand it,

How do we get
 Family tree of Ford 
 Larry's Cookbook
to appear below the line?


Does this sound right?

In the locator side bar each tag you click on gets moved above the line, and only the tiddlers remaining with all the "above the line tags" will be listed will be listed below the line. 

At any point you can click the + to create a new tiddler with all the tags above the line tagging it.

Regards
Tony

bimlas

unread,
Jul 9, 2019, 4:14:47 AM7/9/19
to TiddlyWiki
TonyM,

I've added a classic Table of Contents to the sidebar, please compare the behaviour with Locator to have a better understanding.

I really regret that I can express myself so hard. Thank you very much if you could fix and add to the Locator and Kin filter documentation because I appreciate that you pay so much attention to my plugins.

h0p3

unread,
Jul 9, 2019, 4:22:44 PM7/9/19
to tiddl...@googlegroups.com
Thank you for the update!

I have a question which is off topic, and please feel free to tell me to go figure it out. How can I make the locator sidebar button in the view toolbar automatically open the Locator sidebar tab? I might, for example, be in the Recent tab in the sidebar, and when I click that button, I'd like it to switch to the Locator tab in my sidebar. This is convenient for me, but I think it's crucial for a user of my wiki who doesn't know what your tool does; they won't know to look at that tab.

bimlas

unread,
Jul 9, 2019, 6:00:24 PM7/9/19
to TiddlyWiki
h0p3,

Unfortunately, as far as I know, this is not possible. To understand why, create a new tiddler with the following content:

<<tree prefix:"$:/state/">>

Switch between tabs and watch this tiddler: new state tiddlers are created, such as $:/state/tab/sidebar--595412856. If you open these tiddlers and switch between tabs again, you will understand that the wiki stores the current state in them (which tab is open). If you change the text of these tiddlers, the currently selected tab will be modified according to the text.

The problem is that the number in the name of tiddler can be variable. Although 595412856 seems to be constant in every case, I think it is not a good idea to treat it as a fact, because it may change under certain circumstances. Since we cannot determine the state tiddler's name precisely, we cannot modify it, so we cannot open the corresponding sidebar tab with a button.

P.S.: Recently I forgot to mention that this guide about tagging can be helpful in your Remodeling.

TonyM

unread,
Jul 9, 2019, 6:14:55 PM7/9/19
to TiddlyWiki
Bimlas/H0p3,

It is fine to change the content in $:/state/tab/sidebar--595412856

The tiddlername is most likely generated using the Qualify macro. It is the same on tiddlwiki.com and the pre-release.

The worst case is if this changes is the sidebar tab will not change.

H0p3 of course you can make this change yourself, just use an action widget in the button (That bimlas created) to stuff the sidebar tiddlers name into the above state tiddler.

Regards
Tony

bimlas

unread,
Jul 9, 2019, 6:15:59 PM7/9/19
to TiddlyWiki
Wow... o_O Since I found ActionSetFieldWidget, I'm not sure that this is not possible...

bimlas

unread,
Jul 9, 2019, 6:27:07 PM7/9/19
to TiddlyWiki
Thanks, TonyM, it seems to work (while h0p3 do not changing the title of "Maps" tab), so I attaching the modified button: I've added two lines for it to open the right tabs:

...
<$action-listops $tiddler="$:/state/bimlas/locator" $field="breadcrumbs" $filter=[[]]/>
<$action-listops $tiddler="$:/state/bimlas/locator" $field="ancestor-tags" $filter=[[]]/>
<!-- Added lines -->
<$action-setfield $tiddler="$:/state/tab/sidebar--595412856" text="Maps"/>
<$action-setfield $tiddler="$:/state/tab-1115086957" text="Locator view"/>
<!-- End of added lines -->

<$list filter="[<tv-config-toolbar-icons>prefix[yes]]" variable="listItem">
{{$:/core/images/chevron-right}}
...

It works only in h0p3's wiki!
$__plugins_bimlas_locator_viewtoolbar_open-in-sidebar.json

bimlas

unread,
Jul 9, 2019, 6:28:48 PM7/9/19
to TiddlyWiki
TonyM,

Compared to classic ToC, did you understand the plugin? I'm sorry I haven't done the tutorial yet, but it's here midnight, I'm not ready to do it today.

TonyM

unread,
Jul 9, 2019, 7:06:53 PM7/9/19
to TiddlyWiki
Bimlas,

That started me understanding it, yes.

Basically an alternate way to browse any tag tree such as a TOC, is with the locator plugin 

The locator side bar each tag you click on gets moved above the line, and only the tiddlers remaining with all the "above the line tags" will be listed will be listed below the line. 

At any point you can click the + to create a new tiddler with all the tags above the line tagging it.

h0p3

unread,
Jul 10, 2019, 12:36:37 PM7/10/19
to tiddl...@googlegroups.com
Thank you for this mod! Also, thank you for the tagging theory link. I speak a bit about that particular link here: 2019.06.07 - Tagging Theory: At Last. I only see part of what your tool can do, but I must gush about it. Please ignore at will the autistic schizoid describing what it feels like to use it in the following word-salad wall-of-text.

Locator allows me to traverse some of the gunkiness of my wiki with both a rich set of ad hoc paths and the means to sanely narrow or grow the search space. You've given me an interactive nested-doorway device for incrementally unrolling known and unknown structures in my wiki. Delightfully, I don't have to know all that much up front to find what I'm looking for in many cases. Meaningful hierarchies arise from limited input and manual planning on my part via a gradual revelation. To various degrees, I don't have to know the boundaries of where I'm going or what I'm looking for; you allow me to bootstrap one off the other. Salience has a higher chance of emerging from smaller bits of information while wearing your plateau-hopping mapper goggles.

In a way, your tool is very fast; it's an exploration hack. I could technically explore all of this without your tool, but you lower the friction for me to rapidly explore different perspectives, angles, or scopes in a rhizome. I wouldn't have the energy to connect all those dots by hand; hence this is a powertool. While I may be dead wrong, I suspect those who are more diligent in their hard-coded tag-based organization practices will not find as much value from your tool as those who have a more freeform and carelessly sprawling approach to structuring their wikis via tags (like mine) because it picks low-hanging fruit. You turn some apparent heaps into stacks. Your tool is a GUI abstraction for rapidly stepping back and forth through doorways in my wiki by automating the construction of complex filter expressions in stages with minimal effort; even someone who doesn't know anything about TW can learn to use your tool.

I visualize my wiki in directory-like hierarchies built into the bodies and names of my tiddlers. I am wired to visualize in hierarchies, not tags. You make what is hard to remember about the fluid messiness and dimensionality of tags easier to visualize; I feel like a flatlander who has another tool for testing the nature of the 3D hyperobjects he can't quite perceive. Maybe tags are a higher-ordered glue for me, and your tool a lubricant which lowers the cognitive load. I think your tool empowers lazier tagging for that fluid arbitrary relationship construction (since tags also serve as functional properties in other cases). I've not built a single tag-based TOC in my wiki, and now I can traverse my wiki as if I had written all of the intuitive tag-based TOCs I wished I had. I am curious to know if this search-force multiplying tool gives rise to tagging strategies only feasible in virtue of it.

I have two tangent ideas for hopefully everyone to think about long-term.

First, I'm convinced your tool is a working, scalable, and performant example of a broader class of relationship-representation tools for more visually reasoning about knowledge so well-suited to wikis. I simply can't use real-time mindmapping visualization tools on my wiki as I'd like to because they are too slow (for now). I hope to see more graphical tooling like yours which abstracts over meaningful types of filter/query construction. If you play Magic, https://scryfall.com/advanced is a fantastic example of what it means to give a user meaningful navigational control without forcing them to write dozens of SQL queries. I'm convinced a graphical way to construct First-Order Logic expressions (and hence arbitrarily complex filter expressions) will always be a promising direction.

Second, I use TW as an ergodic hypertext writing tool. Links are green-threaded tags for me. To put it into perspective, I have hundreds of tags, but I have tens of thousands of links internally pointing in my wiki (and also outside to the web and other networks). Some people think the meanings of words are defined in terms of how we use them, and there is something to that. Similarly, the meaning of my tiddlers are often in virtue of how they are linked to and from each other in my wiki; tags only express a portion of the structure I'm trying to construct. Rapid navigation of child backlinks in $:/core/ui/TiddlerInfo/References and ancestor links stripped out of bodies (perhaps fields as well) might be somewhat parallel to what is achieved in your tooling.

Perhaps I've said nothing new or valuable to you, but I've said it just in case. Your tool is Leet, sir. Thank you for your work, and you've given me a lot to think about.

Mohammad

unread,
Jul 11, 2019, 12:06:05 AM7/11/19
to TiddlyWiki
Great job bimlas!
I do star your repo on GitHub!

Keep going on

Best
Mohammad

bimlas

unread,
Jul 11, 2019, 3:17:18 AM7/11/19
to TiddlyWiki
TonyM and all,

I'm very sorry, but there was an error with the "new tiddler" button: if any of the selected tags contained a space, the newly created tiddler got all the tags that were selected so far. TonyM, this is why the behaviour was not clear, which I hope is now understandable. To make the plugin even clearer, I took your advice and added tooltips to the buttons that explain what the button is for.

New release: v1.4.0
  • When there was a space in the search string and "new tiddler" button is used from search, the tiddler title was encapsulated ([[title with spaces]])
  • When there was a space in any of the breadcrumbs in sidebar and "new tiddler" button is used from it, the tiddler got all of the breadcrumb tags, the title with spaces was encapsulated (literally [[title with spaces]] tag)
  • Add more tips to $:/plugins/bimlas/locator/README/TIPS
  • Add descriptive tooltip to buttons

I am pleased if you continue to give me new feature ideas and indicate if something is not working properly. Thanks for using the plugin!

bimlas

unread,
Jul 11, 2019, 3:38:17 AM7/11/19
to TiddlyWiki
David Gifford, MarkS,

Could you please add the plugin to "Tags, tagging" and "Navigation - Tables of contents and outliners" categories as well in TiddlyWiki Toolmap?

bimlas

unread,
Jul 12, 2019, 2:55:07 AM7/12/19
to TiddlyWiki
TonyM,

I wrote a short introduction that attempts to show how the plugin works through a real example. Please read and tell me your opinion or correct it if you do not find it appropriate.

bimlas

unread,
Jul 12, 2019, 3:11:13 AM7/12/19
to TiddlyWiki
I wrote a little more (I just signal if you are reading it right now).

TonyM

unread,
Jul 12, 2019, 6:29:36 AM7/12/19
to TiddlyWiki
Bimlas,

Good work. I will have a play and follow you guide and provide any feedback. It is much easier to understand now.

Thanks for you contributions.

Regards
Tony

bimlas

unread,
Jul 19, 2019, 10:45:38 AM7/19/19
to TiddlyWiki
h0p3,

I'm sorry for the delayed response, but I'm trying to spend my little free time on implementing new ideas.

Thank you very much for your kind words. Although I do not understand exactly what you wrote, because my English knowledge and Google Translate are not enough for accurate translation, but it seems like you like what I have done. :)

meaningful navigational control without forcing them to write dozens of SQL queries

If you are thinking of implementing Search of h0p3 then there is an attempt, but I think a graphical solution would not replace, but complicate the flexibility of text filters. In my opinion, an auto-completion for Advanced Search would be some kind of solution.

 Rapid navigation of child backlinks in $:/core/ui/TiddlerInfo/References and ancestor links stripped out of bodies (perhaps fields as well) might be somewhat parallel to what is achieved in your tooling.

 Sorry, but I don't understand: could you write an example of what you would like to see?

bimlas

unread,
Jul 20, 2019, 12:15:49 PM7/20/19
to TiddlyWiki
h0p3,

About the "searching GUI": this is what I mean under "auto-completion":


Click in and out to the entry until popup is not shown. It's currently doing nothing but lists the names of filters that match the text you type. To be truly functional, I need to implement additional filters.

The principle would be to wait for the name of a filter after every "[" and "]" character (for example at the "*" characters in "[*all[*shadows]*tag[*foo]*]") and show the completions based on the name of the semi-typed filter to the name of the entire filter, as the code-completion works in an IDE.

h0p3

unread,
Jul 21, 2019, 2:47:09 AM7/21/19
to TiddlyWiki
Ah, take all the time you need. We have busy lives. Also, to be fair, it's probably better for you to ignore me and work on those awesome things in your freetime. I adore what you've done.

Autocompletions are useful if you know roughly what code you want to write in the first place. Tiddlywiki could make even stronger use of them, no doubt. It's much faster to build syntactically correct expressions with it, and it can lower the friction to build, in this case, filter expressions quite rapidly. I do not deny this, and, of course, I'm in favor of such development. My point is that it only helps someone who already knows what they are doing because it is not an abstraction.

I do not know why a graphical solution to constructing filter expressions would necessarily complicate the flexibility. I am surprised to see this claim from you since your tool appears to be an exception. I am likely wrong though. It is obvious you see very far.

Further, I'm not sure how to conceive of the backlinks idea well enough. I think it could have its own TOC or Tiddlymap which is dynamically constructed. Picking links on a wiki and computing/seeing how they are related to each other via other chains of links seems doable, but I don't know how to visually present it in a satisfactory way.

bimlas

unread,
Feb 10, 2020, 9:09:16 AM2/10/20
to TiddlyWiki
h0p3,
 
I do not know why a graphical solution to constructing filter expressions would necessarily complicate the flexibility. I am surprised to see this claim from you since your tool appears to be an exception. I am likely wrong though. It is obvious you see very far. 

Further, I'm not sure how to conceive of the backlinks idea well enough. I think it could have its own TOC or Tiddlymap which is dynamically constructed. Picking links on a wiki and computing/seeing how they are related to each other via other chains of links seems doable, but I don't know how to visually present it in a satisfactory way. 

I've changed my mind and implemented what you said, I hope you like it: https://groups.google.com/forum/#!topic/tiddlywiki/Y6tbO_vnKmw

Thanks for the ideas!
Reply all
Reply to author
Forward
0 new messages