diff --git a/packages/ui/src/layouts/shared/files-tab/components/FileNavbar.vue b/packages/ui/src/layouts/shared/files-tab/components/FileNavbar.vue index e7ec4fabd6..87bff7773b 100644 --- a/packages/ui/src/layouts/shared/files-tab/components/FileNavbar.vue +++ b/packages/ui/src/layouts/shared/files-tab/components/FileNavbar.vue @@ -179,8 +179,9 @@ -
+
+
@@ -274,6 +286,10 @@ const messages = defineMessages({ id: 'files.navbar.share-to-mclogs', defaultMessage: 'Share to mclo.gs', }, + findInFile: { + id: 'files.navbar.find-in-file', + defaultMessage: 'Find in file', + }, }) const props = defineProps<{ @@ -282,6 +298,7 @@ const props = defineProps<{ editingFileName?: string editingFilePath?: string isEditingImage?: boolean + isEditorFindOpen?: boolean searchQuery: string showRefreshButton?: boolean showInstallFromUrl?: boolean @@ -301,6 +318,7 @@ const emit = defineEmits<{ unzipFromUrl: [cf: boolean] refresh: [] share: [] + find: [] }>() const refreshing = ref(false) diff --git a/packages/ui/src/layouts/shared/files-tab/components/editor/EditorFindReplace.vue b/packages/ui/src/layouts/shared/files-tab/components/editor/EditorFindReplace.vue new file mode 100644 index 0000000000..66dda5edb2 --- /dev/null +++ b/packages/ui/src/layouts/shared/files-tab/components/editor/EditorFindReplace.vue @@ -0,0 +1,247 @@ + + + + + diff --git a/packages/ui/src/layouts/shared/files-tab/components/editor/FileEditor.vue b/packages/ui/src/layouts/shared/files-tab/components/editor/FileEditor.vue index 9e9fe6215b..1c54678577 100644 --- a/packages/ui/src/layouts/shared/files-tab/components/editor/FileEditor.vue +++ b/packages/ui/src/layouts/shared/files-tab/components/editor/FileEditor.vue @@ -1,8 +1,21 @@