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

✨ Select Next/Previous Occurrence #54

Open
austincondiff opened this issue Nov 8, 2024 · 0 comments
Open

✨ Select Next/Previous Occurrence #54

austincondiff opened this issue Nov 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@austincondiff
Copy link
Contributor

austincondiff commented Nov 8, 2024

Description

We should allow users to navigate between occurrences of the selected text within the currently open document using the keyboard shortcuts:

  • Select Next Occurrence: E
  • Select Previous Occurrence: E

This feature will leverage the existing Find in Document mechanism and displays a loop / end of document HUD when navigating between matches (see #1 for details).

Additional Context

  • When navigating through occurrences, all matches should be highlighted, with the currently selected match prominently highlighted.
  • The loop HUD should be displayed upon reaching the end or beginning of the document, providing a visual cue that no more matches are available in that direction.
  • This feature should align with the existing Find functionality.

Requirements

  1. Keyboard Shortcuts:

    • E to select the next occurrence.
    • E to select the previous occurrence.
  2. Loop HUD:

    • Display a HUD notification when the end or beginning of the document is reached, indicating no further matches are available.
  3. Highlighting:

    • Ensure all occurrences of the selected text are highlighted.
    • The currently selected occurrence should be distinctly highlighted to guide user focus.
  4. Find in Document Mechanism Integration:

    • The implementation should utilize the existing Find in Document mechanism to maintain consistency across the app's search and navigation features.

Related Issues

Screenshots

Screen.Recording.2024-11-08.at.2.23.37.PM.mov
image
@austincondiff austincondiff added the enhancement New feature or request label Nov 8, 2024
@austincondiff austincondiff moved this from 🆕 New to 📋 Todo in CodeEdit Project Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Todo
Development

No branches or pull requests

1 participant