CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

✨ Clicking Project Find result should highlight instance of query text

Open austincondiff opened this issue 2 years ago • 2 comments

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

austincondiff avatar Dec 09 '23 22:12 austincondiff

Blocked by CodeEditTextView#221

thecoolwinter avatar Dec 10 '23 20:12 thecoolwinter