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

Fuzzy log search #152

Closed
2 tasks
jgresham opened this issue Dec 20, 2022 · 1 comment
Closed
2 tasks

Fuzzy log search #152

jgresham opened this issue Dec 20, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jgresham
Copy link
Member

jgresham commented Dec 20, 2022

Feature details

Right now the log search filter is an exact match. Use an npm package to accomplish this or implement your own algoritm. Shouldn't impact performance too much. Include the runtime of the fuzzy search.

  • Ignore case - A search for "error" should return logs with "... Error ... "
  • Char off-by-one - a search for "eror" should return logs with " ... error ... "

Current line of code with the exact match log.includes(searchTerm) at https://github.com/jgresham/nice-node/blob/f01558eb32e622a48b3aa1b8493357e646aa9a93/src/renderer/Generics/redesign/LogMessage/Logs.tsx#L105

@jgresham jgresham added enhancement New feature or request good first issue Good for newcomers labels Dec 20, 2022
@leeoniya
Copy link

shameless plug: https://github.com/leeoniya/uFuzzy#a-biased-appraisal-of-similar-work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants