✨ Select Next/Previous Occurrence
@austincondiff y travaille déjà.
Depuis le 7/6/2025.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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.
- If "Wrap Around" is enabled, 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.
[!NOTE]
We may want to leverage the functionality introduced with in-editor find and replace, and theEmphasisManager.
Requirements
-
Keyboard Shortcuts:
- ⌥ ⌘ E to select the next occurrence.
- ⇧ ⌥ ⌘ E to select the previous occurrence.
-
Loop HUD:
- If "Wrap Around" is enabled, display a HUD notification when the end or beginning of the document is reached, indicating no further matches are available, otherwise display a end of file HUD.
-
Highlighting:
- Ensure all occurrences of the selected text are highlighted.
- The currently selected occurrence should be temporarily highlighted to guide user focus using the EmphasisManager.
-
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
- #1
Screenshots
https://github.com/user-attachments/assets/3810a585-0a6d-4636-acb9-fd330dd9ae26
- Langage dominant
- Swift
- Étoiles
- 720
- Forks
- 162
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de CodeEditApp/CodeEditSourceEditor
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
CodeEditApp/CodeEditSourceEditor#377 · 1 commentaire ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
CodeEditApp/CodeEditSourceEditor#376 · 1 commentaire ·
-
Difficulté 1/5 1-3 heures Accessibilité débutants 68/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
CodeEditApp/CodeEditSourceEditor#378 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 32/100
Toutes les issues de CodeEditApp/CodeEditSourceEditor
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Cocoanetics/SwiftACP#52 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
storyblok/storyblok-swift#12 ·
-
bug yapback
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100