CodeEditApp / CodeEditApp/CodeEdit

✨ Clicking Project Find result should highlight instance of query text

未关闭
#1,505 2 条评论 0 个 reaction 已指派 1 人 已被 @tom-ludwig 认领 在 GitHub 查看
enhancement find navigator source editor
主要语言
Swift
星标
23k
派生
1.2k
PR 合并指标
30 天内没有已合并 PR

描述

### Description

When performing a search in the find navigator and a list of results are presented, the user clicks a result and when it opens the corresponding file, the instance of the query text should be highlighted – not to be confused with selected.

### Related issues

- #1504

### Additional Context

We have been discussing the need for a highlight API. We currently have the ability to highlight matching brackets (https://github.com/CodeEditApp/CodeEditTextView/issues/67). The bracket highlight bounces and then disappears, but we also need the ability to bounce and not disappear for this to work correctly. Then when the user clicks or navigates with the keyboard into the editor, we should hide/clear the highlight.

For an example of how this works, do a project find in Xcode and click on a result. Take note of how the highlight bounces and remains present until the user clicks into the editor.

### Screenshots

image

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。