-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Enhancement: refresh search button #286
Comments
Will check what we can do to optimize the behavior. The page list gets updated when a page gets updated, but it could indeed be the index needs to be regenerated as well. Having a clear or refresh button is an intermediate solution, but can force the update. |
Have been trying to reproduce the issue in order to see how we can improve things, but for now, all seems to work fine on my end. 2022-03-11_17-36-29.mp4What and where does it behave differently on your end? If you are able, feel free to share a video on where and how it goes wrong in your environment. |
That's interesting. I did the same thing, essentially, and it did not refresh the filtered search. Only closing and opening the dashboard entirely did the trick: frontmatter.mp4I have v.6.1.1 of FM, which VSCode reports is the latest available. Hope that helps sort it out! |
Thanks @grahampcharles, it should also work in version 6.1.1. Would you be able to open the This way I'll be able to validate if the file watchers are getting triggered. In the output the extension logs what it is actually doing, more information on: https://frontmatter.codes/docs/troubleshooting#looking-what-is-happening-behind-the-scenes |
Sure, I can do that. For now, though, I noticed that opening the dashboard gives me this error 129 times (which I think is every content page):
So I imagine that's what's at the root of it. Hang on, I'm going to clone your repo and see if I can find exactly where the error occurs. |
@grahampcharles just did a couple of test runs on a Windows machine, but haven't been able to reproduce the error you are seeing. If you would be able to share a sample project or your project, feel free to do so. You can also send me an email to elio@struyfconsulting.be if there are things you do not want to share in this thread. |
A refresh button got added next to the searchbox. It is not the final solution, as I want to make sure the |
Sure, I'm happy to share it semi-privately. I'll add you to my repo for it. It's not particularly sensitive stuff -- just schoolwork. I am now getting the |
I figured out the "frontMatter.taxonomy.contentTypes": [
{
"name": "default",
"pageBundle": true
}
] ...but didn't add any fields to it. Whoops. (Probably worth catching, so it doesn't disable the whole plugin, but still, clearly user error.) |
Oh, that is great news! Will see what we can do to still make use of the default fields if this happens. |
Okay, now that I've cleared up the 2022-03-16.10-56-20.mp4. |
It seems the saved file listener from VS Code isn't triggered. Another request, would you be able to test the In the beta, there are already a couple of issues fixed, like the metadata flow. |
Wrapping up the tasks for the 7.0.0 release, and this one is still open. @grahampcharles have you had the chance to check it out? |
Sorry to take so long. That's done it! You want me to record a screencap? |
Oh, incidentally, the plaintext search seems to have some problems. I think I'll start that as a new issue, though -- I'm not sure it's related to this. |
Thanks, @grahampcharles for confirming! |
If I search posts from the FM Dashboard with a filter (by tag, for example), and then edit some of those posts to remove the tag, the search results don't change -- there's no "Refresh" or re-search button. Even clearing and re-setting the search criteria doesn't refresh the search ; the stale results are still returned. Only closing and re-opening the dashboard triggers the search function to update.
A
Refresh
button on the search results (next to(X) Clear
, maybe?) could trigger a re-catalog.The text was updated successfully, but these errors were encountered: