Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can update sidebar content when search editor change? #8251

Closed
lilixiong2018 opened this issue Jun 12, 2024 · 2 comments
Closed

Can update sidebar content when search editor change? #8251

lilixiong2018 opened this issue Jun 12, 2024 · 2 comments

Comments

@lilixiong2018
Copy link

lilixiong2018 commented Jun 12, 2024

Is your feature request related to a problem? Please describe.
No or not found.

Describe the solution you'd like
I create a sidebar tab as that:

<$edit-text field="search" placeholder="enter prefix string to search" size="30"/>

<$set field=search name=term tiddler=<<currentTiddler>> >
<$list filter="[!is[system]prefix<term>!sort[modified]]" template="$:/core/ui/ListItemTemplate" emptyMessage="Not found."/>

</$set>

it works if the searchbox is empty. When I change the searchbox's content, the results don't update.

Describe alternatives you've considered
Hope sidebar content can be updated when searchbox's content change.

Additional context

@kookma
Copy link
Contributor

kookma commented Jun 12, 2024

Use this one

<$edit-text field="search" tiddler="$:/temp/search" placeholder="enter prefix string to search" size="30"/>

<$set field=search name=term tiddler="$:/temp/search" >
<$list filter="[!is[system]prefix<term>!sort[modified]]" template="$:/core/ui/ListItemTemplate" emptyMessage="Not found."/>

</$set>

Note the tiddler I have set both in $edit-text and $set widgets.

To know the reason read the last paragraph of https://tiddlywiki.com/prerelease/#tabs%20Macro

@lilixiong2018
Copy link
Author

It works, thanks much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants