diff --git a/manifest.json b/manifest.json index 1b57f5c..40a553a 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "gridexplorer", "name": "GridExplorer", - "version": "3.1.10", + "version": "3.1.11", "minAppVersion": "1.1.0", "description": "Browse note files in a grid view.", "author": "Devon22", diff --git a/package-lock.json b/package-lock.json index bd26b82..ce1a4f3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "gridexplorer", - "version": "3.1.10", + "version": "3.1.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "gridexplorer", - "version": "3.1.10", + "version": "3.1.11", "license": "MIT", "dependencies": { "@esbuild/linux-x64": "0.17.3", diff --git a/package.json b/package.json index 53ef39f..a0117f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gridexplorer", - "version": "3.1.10", + "version": "3.1.11", "description": "Browse note files in a grid view.", "main": "main.js", "scripts": { diff --git a/src/renderModePath.ts b/src/renderModePath.ts index 4e4f5c9..ce5bc7c 100644 --- a/src/renderModePath.ts +++ b/src/renderModePath.ts @@ -448,6 +448,21 @@ export function renderModePath(gridView: GridView) { }); } } + + // 在系統檔案總管開啟 + if (Platform.isDesktop) { + menu.addSeparator(); + menu.addItem((item) => { + item + .setTitle(t('open_in_file_explorer')) + .setIcon('arrow-up-right') + .onClick(() => { + if (folder instanceof TFolder) { + (gridView.app as any).showInFolder(folder.path); + } + }); + }); + } if (gridView.plugin.settings.folderDisplayStyle !== 'show' && gridView.sourcePath !== '/') { menu.addSeparator(); diff --git a/versions.json b/versions.json index ff6e42b..1137eca 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,3 @@ { - "3.1.10": "1.1.0" + "3.1.11": "1.1.0" } \ No newline at end of file