-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search functionality without HOC #390
Comments
I figured out the right keystrokes to open the search window and it looks kind of janky to me. Is this functionality needed at all? If so I'm tempted to just rewrite it. |
No objection! Just bear in mind that there's some accessibility stuff embedded into react-tabs and react-modal that we don't want to lose. |
Before I embark on the effort, is there a doc or something that explains the goals of the search functionality? For example, I see that it supports regex search. If the primary use case for the editor is to help beginners learn about programming, regex search seems like a pretty advanced feature that makes the interface more complicated. Is there any reason the search functionality needs to look or behave any differently than codemirror's search functionality, aside from highlighting blocks in addition to text? |
@sorawee added regexp functionality because he could, and I certainly wasn't going to argue with free functionality! :) You're right, though - this is more than we need. There isn't any formal requirements doc, but here's the checklist in descending order of priority:
|
Thanks for the checklist, this is helpful.
Nothing is free. All features have a maintenance cost for developers and a learning/onboarding cost for users. Like everything else, these costs have to be balanced against the benefits. As they say, "less is more", except of course when more is more. As much as I am wowed by the lambda calculus, it sure is nice to have things that aren't functions. |
I'm going to close this in favor of #485 |
We currently wrap our BlockEditor in a higher order component that provides additional functionality. This is unnecessary.
The text was updated successfully, but these errors were encountered: