Search and Highlight Plugin

Many thanks, I just upgraded and first trial delivered the anticipated result.
:grinning:

I did the same by removing the $:/tags/SideBarSegment tag from $:/plugins/ahanniga/find-in-page/templates/sidebar. Must be a neater way to display number of matches :thinking:

1 Like

Hello @telmiger

It would be nice to use this plugin in combination with Simple Search Plugin (Plugins — Utilities for TiddlyWiki).

Thanks
Stefan

Hi Stefan,
I am sorry but I can’t see the connection at the moment. Simple Search darkens the page so you can focus on search and search results. The find-in-page-plugin can help users of Tiddlydesktop (I am not one of them) to find terms in the story river.
To highlight terms on a darkened page in the background of my search tool seems not reasonable to me and would not offer good usability.
So if you would like to use both solutions in a wiki, you might want to make find-in-page independent from the standard search field (use its own search field). This way it would not conflict with simple search.

All the best,
Thomas

Hello Thomas,
thanks for feedabck - I’ll see, how to do that…
Greetings
Stefan

Hello @ahanniga,

my sidbar is normaly closed and I’m using Simple Search Plugin (Plugins — Utilities for TiddlyWiki for searching.

As Thomas mentioned, the solution to use both is to make find-in-page independent from the standard search field (use its own search field).

How can that be done?

Thanks
Stefan

I wonder if anyone has experimented with this excellent search and highlight plugin in order to highlight the search word in a tiddler that is currently being edited?

My tiddlers are often quite long - sometimes 4 or 5 pages of a book, simply not practical to “atomise” into separate tiddlers.

A typical work flow for me involves searching for a word of interest using the search and highlight plugin, locating that word in a particular tiddler and then wanting to edit the tiddler text in the vicinity of that now highlighted search word.

Whilst the search and highlight plugin locates the word successfully in the tiddler before I commence editing, it cannot currently locate the word in the edit window so I have to manually locate the occurrence of interest once I started editing.

I looked into the plugin code, found for instance a segment of code in ahanniga/find-in-page/update.js

	if(searchedText !== "") markInstance.mark(searchedText, {
		separateWordSearch: false,
		exclude: [
			".tc-tiddler-edit-frame *"
		],
		filter: function(node, term, count) {
			totalCounter = count + 1;
			return true;
		},
        highlight: highlight
	});

So the temptation as usual is to jump in and just start playing around, learn how the plugin works and see what happens.

Just fishing for any knowledge or observations here?

If possible it would be nice if the plugin could include any live edits in the highlight results on the story river, that would facilitate search and edit workflows on longer tiddlers. I am already aware of some built in browser functionality but not in the headless browser used on TiddlyDesktop (LInux)