AdvancedSearch text box not populating with Simple-search content

I’m using Simple-search by @telmiger. When I click on the magnifying glass I get the simple search text box. One common usage for me is to type in the text box then click on the advanced button. This displays the AdvancedSearch Tiddler. However the text box content from the simple search is not echoed on the AdvancedSearch Tiddler. However the search results for that content is displayed. If I click on the X button next to it the content does appear.

I’m sure many moons ago (pre 5.2) this use to work.

Any help would be appreciated.

Thank you.

Thank you, @clsturgeon, I did notice this too, but have not found the time to research …
There is a working version in TW 5.1.22 on Plugins — Utilities for TiddlyWiki

All the best,
Thomas

@telmiger Thank you for the reply. Here is another observation. In TW 5.2.x when I right mouse click on the text box in the AdvancedSearch toddler and select “inspect” I see a long list of nested span elements that do not appear in pre-5.2. I have tried to determine why this is occurring–with no luck yet.

Example:

The input field in the “$:/AdvancedSearch Standard” tab is defined in $:/core/ui/AdvancedSearch/Standard, which wraps a call to the <<keyboard-driven-input>> macro within 4 nested <$keyboard> widgets:

<$keyboard key="((input-tab-right))" actions=<<set-next-input-tab>>>
<$keyboard key="((input-tab-left))" actions=<<set-next-input-tab "before">>>
<$keyboard key="shift-alt-Right" actions=<<next-search-tab>>>
<$keyboard key="shift-alt-Left" actions=<<next-search-tab "before">>>

Then, the <<keyboard-driven-input>>macro itself, which is defined in $:/core/macros/keyboard-driven-input wraps an <$edit-text> widget within another 5 nested <$keyboard> widgets:

<$keyboard key="((input-accept))" actions=<<__inputAcceptActions__>>>
<$keyboard key="((input-accept-variant))" actions=<<__inputAcceptVariantActions__>>>
<$keyboard key="((input-up))" actions=<<input-next-actions "before" "reverse[]">>>
<$keyboard key="((input-down))" actions=<<input-next-actions>>>
<$keyboard key="((input-cancel))" actions=<<__inputCancelActions__>>>

Thus, when you use the browser’s “inspect” command to view the resultant HTML generated for the input field, you see a total of 9 <span class="tc-keyboard"> elements enclosing an <input type="search"> element, as shown in your snapshot image.

-e

2 Likes

Thanks, @EricShulman for explaining the span part.

I think I figured out how to make the search terms appear again in advanced search. I will try to fix another bug and publish an update for Simple Search when I am done.

A note will be added here to inform @clsturgeon and others following this issue.

Good night

2 Likes

Hello @clsturgeon, please try the new version of Simple Search v 1.0.27 as available on Plugins — Utilities for TiddlyWiki – as always: be sure to have a back-up of your wiki ready. (It is late and I did not test much.)

By the way: You can also use the tab button to get to the advanced button and then hit enter. I prefer that to mouse clicking.

All the best and good night again :wink:
Thomas

1 Like

@telmiger Thank you. So far so good. I use this plugin on a daily basis–numerous times per day. It will get exercised. Thank you again for addressing this promptly. Aside, at first, when I hit the URL you provided, it showed me build 26 of the plugin. I was about to reply when I realized that it was most likely a Browser caching issue–which it was.

1 Like