This commit is contained in:
Devon22 2026-04-17 19:20:05 +08:00
parent cf0dddfbb1
commit 97c8f6f267
5 changed files with 20 additions and 5 deletions

View file

@ -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",

4
package-lock.json generated
View file

@ -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",

View file

@ -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": {

View file

@ -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();

View file

@ -1,3 +1,3 @@
{
"3.1.10": "1.1.0"
"3.1.11": "1.1.0"
}