mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-05 15:58:47 +00:00
fix search
This commit is contained in:
@@ -30,7 +30,7 @@ import { css } from '@codemirror/lang-css';
|
||||
import { markdown, markdownLanguage } from '@codemirror/lang-markdown';
|
||||
import { html } from '@codemirror/lang-html';
|
||||
import { autocompleteEmoji } from './extensions/autocompleteEmoji.js';
|
||||
import { searchKeymap, search } from '@codemirror/search';
|
||||
import { searchKeymap, search, openSearchPanel } from '@codemirror/search';
|
||||
import { closeBrackets } from '@codemirror/autocomplete';
|
||||
|
||||
const autoCloseBrackets = closeBrackets({ brackets: ['()', '[]', '{{}}'] });
|
||||
@@ -395,8 +395,8 @@ const CodeEditor = forwardRef(
|
||||
undo : ()=>undo(viewRef.current),
|
||||
redo : ()=>redo(viewRef.current),
|
||||
|
||||
find: () => openSearchPanel(viewRef.current),
|
||||
|
||||
find: () =>openSearchPanel(viewRef.current),
|
||||
|
||||
historySize : ()=>{
|
||||
const view = viewRef.current;
|
||||
if(!view) return { done: 0, undone: 0 };
|
||||
|
||||
Reference in New Issue
Block a user