Skip to content

Commit

Permalink
feat: add search and replace (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz authored Jun 14, 2023
1 parent 3b7e511 commit 4ca3d94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/codemirror/codemirror.css
Original file line number Diff line number Diff line change
Expand Up @@ -538,3 +538,7 @@ div.CodeMirror-dragcursors {
span.CodeMirror-selectedtext {
background: none;
}

.CodeMirror-dialog{
background-color: var(--bg);
}
4 changes: 4 additions & 0 deletions src/codemirror/codemirror.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import CodeMirror from 'codemirror'
import 'codemirror/addon/dialog/dialog.css'
import './codemirror.css'

// modes
Expand All @@ -15,6 +16,9 @@ import 'codemirror/addon/fold/foldgutter.js'
import 'codemirror/addon/fold/brace-fold.js'
import 'codemirror/addon/fold/indent-fold.js'
import 'codemirror/addon/fold/comment-fold.js'
import 'codemirror/addon/search/search.js'
import 'codemirror/addon/search/searchcursor.js'
import 'codemirror/addon/dialog/dialog.js'

// keymap
import 'codemirror/keymap/sublime.js'
Expand Down

0 comments on commit 4ca3d94

Please sign in to comment.