bryanchapel / codemirror-modern-search-replace

A more user friendly version of Codemirror's built in search addon.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

codemirror-modern-search-replace

A more user friendly version of Codemirror's built in search addon.

Notable Changes

  • The search panel is replaced with a search/replace panel
  • This panel is persistent by default (won't close automatically on blur or enter press)
  • Buttons for the most common navigations, instead of memorizing the old hotkey scheme.

So these:

Old Search Old Replace

Become these:

New Search New Replace

(BYOS: bring your own styling 🙂)

Note: Since I'm using this as part of a side project, this particular version has a Bootstrap 4 dependency for some of the button icons. I've also gone with strictly CommonJS for the imports/exports.

This will be cleaned up and released on NPM shortly for easy drop-in to other Codemirror based projects.

About

A more user friendly version of Codemirror's built in search addon.

License:MIT License


Languages

Language:JavaScript 99.6%Language:CSS 0.4%