Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

✨ Select Next/Previous Occurrence

未關閉
#300 0 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@austincondiff 已經在處理了。

開始於 2025年6月7日。

評估

這個 Issue 還沒有評估資料。

描述

enhancement
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 the EmphasisManager.

Requirements
  1. Keyboard Shortcuts:

    • ⌥ ⌘ E to select the next occurrence.
    • ⇧ ⌥ ⌘ E to select the previous occurrence.
  2. 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.
  3. 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.
  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
  • #1
Screenshots

https://github.com/user-attachments/assets/3810a585-0a6d-4636-acb9-fd330dd9ae26

image
主要語言
Swift
星號
720
分支
162
PR 合併指標
30 天內沒有已合併 PR

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

CodeEditApp/CodeEditSourceEditor 的其他 Issue

查看 CodeEditApp/CodeEditSourceEditor 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。