1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Desktop: Allow searching when only the note viewer is visible and sync search with editor (#10866)

This commit is contained in:
Henry Heino
2024-08-15 08:01:52 -07:00
committed by GitHub
parent 1edef99811
commit b5313067cd
16 changed files with 246 additions and 92 deletions

View File

@@ -411,6 +411,9 @@ function NoteEditor(props: NoteEditorProps) {
noteToolbar: null,
onScroll: onScroll,
setLocalSearchResultCount: setLocalSearchResultCount,
setLocalSearch: localSearch_change,
setShowLocalSearch,
useLocalSearch: showLocalSearch,
searchMarkers: searchMarkers,
visiblePanes: props.noteVisiblePanes || ['editor', 'viewer'],
keyboardMode: Setting.value('editor.keyboardMode'),
@@ -506,6 +509,7 @@ function NoteEditor(props: NoteEditorProps) {
onPrevious={localSearch_previous}
onClose={localSearch_close}
visiblePanes={props.noteVisiblePanes}
editorType={props.bodyEditor}
/>
);
}