CodeEditApp / CodeEditTextView

A text editor specialized for displaying and editing code documents. Written in pure Swift.

Home Page:https://codeeditapp.github.io/CodeEditTextView/documentation/codeedittextview/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

✨ Improve Design Implementation for Find in File

austincondiff opened this issue · comments

We need the Find and Replace bar to look closer to Xcode's.

image

Top: Xcode | Bottom: CodeEdit

Are there any standard input styles we can use for this or will we need to create this custom?

The one in CE right now is the default NSTextFinder, we'll need to create a custom one.

commented

@thecoolwinter Is it in CE, CETV or STTextView? It seems like STTextView (prove me wrong) has this file for find/replace, meaning that we need to override this in base CE (again, i might be wrong).

The file you sent is extending STTextView to support NSTextFinder, not implementing a custom finder.

commented

Ok i get it, so you're suggesting that we create a custom Find/Replace in CETV. But, considering that the find/replace is in this file in CE shouldn't the custom view be created in CE (or am i just making a incorrect point), @thecoolwinter?

That command sends a showFindPanel message down to the first active view that can respond to it. If you go into CE rn and press command F in the editor you'll get a find menu.

This issue is saying the UI part for entering text to find should be custom. Because that finder view needs to be installed on the STTextView, it has to be implemented in CETV where that view can be accessed.