fleather-editor / fleather

Soft and gentle rich text editing for Flutter applications.
https://fleather-editor.github.io
Other
195 stars 36 forks source link

Search feature #240

Open vinitk-aveosoft opened 8 months ago

vinitk-aveosoft commented 8 months ago

Need below search functionality.

  1. Basic search
  2. Filtering based on case (Upper and Lower Case)
  3. Filter to match exact word.
amantoux commented 8 months ago

Thank you for this issue. Interested to understand the use case you have in mind @vinitk-aveosoft You have used fleather in a context where a large text is used? How long a text?

vinitk-aveosoft commented 8 months ago

I'm not sure what that means @amantoux . What I have in mind is some thing like below attached images. I have been using flutter_quill, but the package is very buggy. base case word

amantoux commented 8 months ago

Interesting feature! @vinitk-aveosoft Feel free to contribute!

jacquetc commented 7 months ago

Hello, Only adding my two cents. From my experience, this seemingly simple feature is in fact very complex and the use cases can differ between applications. And don't forget the tests around such feature !

Prerequisites:

Use cases & features:

My thoughts: Personally, I think that such feature could be another package, with a way to plug it in Fleather. This would be the same way a third-party spellchecker (like Antidote or LanguageTool) can be plugged in. I read somewhere that work was done toward offering this extensibility. Spellchecker API and Search/Replace can share the same API, couldn't they ?