Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: not loading folder meta on using openLink

Ilian Sapundshiev5a1df1204b5d
diff --git a/app/reducers/app.ts b/app/reducers/app.ts
index 3492f46b2..056002717 100644
--- a/app/reducers/app.ts
+++ b/app/reducers/app.ts
@@ -1451,7 +1451,7 @@ export const actions = {
.then(newDirPath => {
const { currentDirectoryPath, openedFiles } = getState().app;
if (currentDirectoryPath === directoryPath) {
- dispatch(actions.loadDirectoryContent(newDirPath, false));
+ dispatch(actions.loadDirectoryContent(newDirPath, false, true));
if (openedFiles && openedFiles.length > 0) {
if (openedFiles[0].path === directoryPath) {
const openedFile = openedFiles[0];
@@ -2318,7 +2318,7 @@ export const actions = {
dispatch(actions.openFsEntry(fsEntry));
dispatch(actions.setEntryFullWidth(true));
} else {
- dispatch(actions.loadDirectoryContent(fsEntry.path, false));
+ dispatch(actions.loadDirectoryContent(fsEntry.path, false, true));
}
return true;
})
@@ -2351,7 +2351,9 @@ export const actions = {
PlatformIO.enableObjectStoreSupport(targetLocation).then(() => {
if (directoryPath && directoryPath.length > 0) {
const dirFullPath = directoryPath;
- dispatch(actions.loadDirectoryContent(dirFullPath, false));
+ dispatch(
+ actions.loadDirectoryContent(dirFullPath, false, true)
+ );
}
if (entryPath) {
@@ -2395,7 +2397,7 @@ export const actions = {
}
const dirFullPath =
locationPath + PlatformIO.getDirSeparator() + directoryPath;
- dispatch(actions.loadDirectoryContent(dirFullPath, false));
+ dispatch(actions.loadDirectoryContent(dirFullPath, false, true));
}
if (entryPath && entryPath.length > 0) {
diff --git a/package-lock.json b/package-lock.json
index 7554ad340..c72fa2cce 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19,7 +19,7 @@
"@mui/lab": "^5.0.0-alpha.92",
"@mui/material": "^5.9.2",
"@mui/styles": "^5.9.2",
- "@tagspaces/tagspaces-md": "2.0.49",
+ "@tagspaces/tagspaces-md": "2.0.50",
"@tagspaces/tagspaces-platforms": "2.0.45",
"aws-amplify": "^4.3.8",
"aws-sdk": "^2.1036.0",
@@ -11130,6 +11130,19 @@
"@milkdown/prose": "^6.0.1"
}
},
+ "node_modules/@milkdown/plugin-cursor": {
+ "version": "6.5.2",
+ "resolved": "https://registry.npmjs.org/@milkdown/plugin-cursor/-/plugin-cursor-6.5.2.tgz",
+ "integrity": "sha512-yL36ZsxuGhRNByIus8tpNfOYG0KJUE0x6U0C5MTxtd7RoaS86rdukjawMopaGxf1NH7M5/FFQdX5NZ8SQ6cwIg==",
+ "dependencies": {
+ "@milkdown/utils": "6.5.2",
+ "tslib": "^2.4.0"
+ },
+ "peerDependencies": {
+ "@milkdown/core": "^6.0.1",
+ "@milkdown/prose": "^6.0.1"
+ }
+ },
"node_modules/@milkdown/plugin-diagram": {
"version": "6.5.2",
"resolved": "https://registry.npmjs.org/@milkdown/plugin-diagram/-/plugin-diagram-6.5.2.tgz",
@@ -13693,9 +13706,9 @@
}
},
"node_modules/@tagspaces/tagspaces-md": {
- "version": "2.0.49",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-md/-/tagspaces-md-2.0.49.tgz",
- "integrity": "sha512-zX9gme57+fu3K4sGmKTxI1XJJPuvYfYdNUpbH8Q0/+8f+DYuqGM5Bd1ERj7u/YC2BilRNasqircnJMzehtiSYw==",
+ "version": "2.0.50",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-md/-/tagspaces-md-2.0.50.tgz",
+ "integrity": "sha512-L4Y76UARnT7ia2q8vOZCfpvlZJeOyw2voMOsJJRlEuatRzC7nsWe98Yzgjhy32e+1sp0sMRPC4SWjxuTfbVccQ==",
"dependencies": {
"@codemirror/autocomplete": "^6.3.0",
"@codemirror/commands": "^6.1.2",
@@ -13711,6 +13724,7 @@
"@milkdown/core": "6.5.2",
"@milkdown/plugin-block": "6.5.2",
"@milkdown/plugin-clipboard": "6.5.2",
+ "@milkdown/plugin-cursor": "6.5.2",
"@milkdown/plugin-diagram": "6.5.2",
"@milkdown/plugin-emoji": "6.5.2",
"@milkdown/plugin-history": "6.5.2",
@@ -57493,6 +57507,15 @@
"tslib": "^2.4.0"
}
},
+ "@milkdown/plugin-cursor": {
+ "version": "6.5.2",
+ "resolved": "https://registry.npmjs.org/@milkdown/plugin-cursor/-/plugin-cursor-6.5.2.tgz",
+ "integrity": "sha512-yL36ZsxuGhRNByIus8tpNfOYG0KJUE0x6U0C5MTxtd7RoaS86rdukjawMopaGxf1NH7M5/FFQdX5NZ8SQ6cwIg==",
+ "requires": {
+ "@milkdown/utils": "6.5.2",
+ "tslib": "^2.4.0"
+ }
+ },
"@milkdown/plugin-diagram": {
"version": "6.5.2",
"resolved": "https://registry.npmjs.org/@milkdown/plugin-diagram/-/plugin-diagram-6.5.2.tgz",
@@ -59359,9 +59382,9 @@
}
},
"@tagspaces/tagspaces-md": {
- "version": "2.0.49",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-md/-/tagspaces-md-2.0.49.tgz",
- "integrity": "sha512-zX9gme57+fu3K4sGmKTxI1XJJPuvYfYdNUpbH8Q0/+8f+DYuqGM5Bd1ERj7u/YC2BilRNasqircnJMzehtiSYw==",
+ "version": "2.0.50",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-md/-/tagspaces-md-2.0.50.tgz",
+ "integrity": "sha512-L4Y76UARnT7ia2q8vOZCfpvlZJeOyw2voMOsJJRlEuatRzC7nsWe98Yzgjhy32e+1sp0sMRPC4SWjxuTfbVccQ==",
"requires": {
"@codemirror/autocomplete": "^6.3.0",
"@codemirror/commands": "^6.1.2",
@@ -59377,6 +59400,7 @@
"@milkdown/core": "6.5.2",
"@milkdown/plugin-block": "6.5.2",
"@milkdown/plugin-clipboard": "6.5.2",
+ "@milkdown/plugin-cursor": "6.5.2",
"@milkdown/plugin-diagram": "6.5.2",
"@milkdown/plugin-emoji": "6.5.2",
"@milkdown/plugin-history": "6.5.2",