Enhanced Search and Replace

For a text editor I’m developing I wrote an extended CodeMirror search and replace module, I ended up putting it on github in case it’s helpful to others …

repo: https://github.com/kofifus/CodeMirrorSearch
demo: http://plnkr.co/edit/LEEZf2Vt9U6PASRGpsrt

Features:

  • combo boxes search and replace
  • find next / find prev / replace next / replace prev / replace all
  • case sensitive / whole word / regular expression / in selection / wrap around / highlight / persistent dialog

The UI is geared towards a text editor (top right widget) but it should be relatively easy to theme it to a bottom-line code editor style, will get to it sometime unless someone wants to jump in …

There are many, overlapping states so while I tried to give it a good test I’ll be surprised if there are no issues/bugs …

Hope this helps :slight_smile:

Hi @mikagenic, I just found your repository, thank you for publishing this module. Your code and the UI it implements look equally beautiful to me and I would like to be able to use it in a closed source project. Would you mind clarifying whether the code falls under a permissive license, such as MIT or Apache? I believe GitHub supports adding a license in a few clicks.

Yes this code is totally free without any restrictions. MIT :slight_smile:

Thank you so much. It really makes my life much easier, and probably others’ as well. Please excuse me for digging more, but does this extend to the New and Combo libraries as well?

Yes it does

1 Like