-
-
Notifications
You must be signed in to change notification settings - Fork 448
New API for StringMatcherKey of Results #3295
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
Conversation
🥷 Code experts: jjw24 Jack251970 has most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame: To learn more about /:\ gitStream - Visit our Docs |
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details.
See ❌ Event descriptions for more information. If the flagged items are 🤯 false positivesIf items relate to a ...
|
Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX. |
This is only used for context menu? |
📝 WalkthroughWalkthroughThe changes update two private methods to be static within the Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant M as MainViewModel
participant R as Result
participant SM as StringMatcher
U->>M: Enter search query
M->>R: Fetch results (with possible StringMatcherKey)
alt StringMatcherKey exists
M->>SM: Perform static search using StringMatcherKey
else
M->>SM: Search using title and subtitle
end
M->>U: Return filtered search results
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (5)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
No, it is for general search score. |
If you go through the code more carefully, only context menu will automatically do a fuzzy search based on title/subtitle. It could be helpful, but I think the usage needs to be discussed more (like null means plugin do its own fuzzy search while non-null means flow do it for general query). |
Oh.... That's not why I created the PR. I will close it. |
StringMatcherKey is the key to be compared with the user input for fuzzy search.
This can be useful when the plugin wants to provide a different string for fuzzy search.
If the plugin does not specific this, FL just uses Title and SubTitle to compare with the user input.
For a plugin like Obsidian, the user would expect title and note content to match the string, we can set this property with title and note content.