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

Search term inside markdown files #705

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jessp01
Copy link

@jessp01 jessp01 commented Feb 25, 2025

Implement term search inside markdown:

  • The search is case-insensitive
  • Only the first 3 matches are displayed but the total count is noted as well
  • Search term is highlighted in the results

See screencast for illustration purposes

Additional changes:

  • README: reference v2 in badges and links for Go docs and Go Report Card
  • Fix some issues reported by golint and gocritic

- Reference v2 in README badges
- Fix some issues reported by `golint` and `gocritic`
@jessp01 jessp01 requested a review from a team as a code owner February 25, 2025 01:56
@jessp01 jessp01 requested review from bashbunni and removed request for a team February 25, 2025 01:56
@jessp01 jessp01 marked this pull request as draft February 25, 2025 01:57
- Reset matches when search term is reset/edited
- Reset matches when search term is reset/edited
- Truncate match line if total line length > availableScreenWidth
- display total number of matches found in file
@jessp01 jessp01 marked this pull request as ready for review February 25, 2025 19:34
@jessp01 jessp01 changed the title Search term inside README files Search term inside markdown files Feb 25, 2025
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.

1 participant