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

Add search word candidates fuzzy match support #705

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

wcq062821
Copy link
Contributor

Implement fuzzy matching for the search word using rapidfuzz

@@ -35,6 +36,8 @@ def __init__(self):
self.search_words_thread = None

(self.max_number, ) = get_emacs_vars(["acm-backend-search-file-words-max-number"])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这几个 get emacs vars应该合并程一个,这样性能会好一点。

@@ -26,6 +26,7 @@
import re

from core.utils import *
from rapidfuzz import fuzz
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个import要移动到代码中,避免用户一更新就挂了

@wcq062821
Copy link
Contributor Author

wcq062821 commented Aug 30, 2023 via email

@manateelazycat manateelazycat merged commit 87d935d into manateelazycat:master Aug 30, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants