postkevone / tiddlyresearch

Local and Anki-compatible note-taking tool based on TiddlyWiki
https://postkevone.github.io/tiddlyresearch/
195 stars 9 forks source link

Search within individual tiddler: Feature request #22

Open subhashkat opened 3 years ago

subhashkat commented 3 years ago

Hi kebifurai, I am an end user, not a programmer. I've been using tiddlywiki scroll version for writing my exam notes, and recently switched to your tiddlyresearch version because your version does extremely well navigating between tiddlers for me (I often have to refer four or five tiddlers at a time)--the horizontal story view, stacking tiddlers, working on tiddlers side by side are just perfect. Can you also include something sort of tiddler search that only searches within an individual tiddler (simple ctrl+f or tiddler search is really messy and tedious when you want to search inside one long tiddler, but when you have tens of tiddler open)--I tried a workaround and I got some code in dyannotate plugin, which I copy paste sometimes into the tiddler for having a search box only for a particular tiddler. It would be really great if I can just click a search button placed in tiddler view bar that can search only that tiddler.

postkevone commented 3 years ago

Hello, I am afraid to tell you that a search box within a tiddler would probably not work as you might expect. Every single node you write is actually another independent tiddler, so even if you create a filter to search for all the tiddlers related to the one you are editing, that would only return single node-tiddlers (the same as the global search). At that point I think you can just use the default search box and get the same results.

I've tired searching for "dyannotate plugin" but I couldn't find anything, if you have any links you can share that would help me understand better your needs, Thank you.

subhashkat commented 3 years ago

Thanks for the quick reply. Yes, what you said might become a problem for searching the tiddler. But, can this be done this way: I mean more like Ctrl+f, can search be done only for the loaded content (when the tiddler is opened, all the content is already loaded, again I might be wrong on this). In your design you are dedicating one box for one main tiddler and all nodes linking to it, so can search be done for a single box? If it is too much trouble, by all means don't worry about the feature.

Dyannotate is not on tiddlywiki main page (I realized after searching it). It is in the standard list of plugins though (you can enter settings in any tiddly wiki-->plugins-->update plugins and scroll or search dynannotate--I attached the screenshot). It is a plugin that goes along with dynaview I think although it is not needed. I am including both the links below:

Dynaview: https://tiddlywiki.com/plugins/tiddlywiki/dynaview/ Dyannotate: https://github.com/Jermolene/TiddlyWiki5/commit/9b48a1c82955d1050c426fef559f42f4b8ec56e7 image

postkevone commented 3 years ago

Thank you for the links, I will try these plugins with tiddlyresearch and see if I can implement them to resolve your problem.