Skip to content

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

chore: improving link extraction

Ilian Sapundshievff602f20e509
diff --git a/package.json b/package.json
index 694439ea2..2f190e2ec 100644
--- a/package.json
+++ b/package.json
@@ -166,9 +166,9 @@
"@mui/lab": "6.0.0-beta.14",
"@mui/material": "^6.1.6",
"@mui/x-date-pickers": "^7.22.1",
- "@tagspaces/tagspaces-common": "4.5.48",
- "@tagspaces/tagspaces-common-aws3": "4.5.48",
- "@tagspaces/tagspaces-common-cordova": "4.5.48",
+ "@tagspaces/tagspaces-common": "4.5.49",
+ "@tagspaces/tagspaces-common-aws3": "4.5.49",
+ "@tagspaces/tagspaces-common-cordova": "4.5.49",
"@tagspaces/tagspaces-indexer": "4.5.48",
"@tagspaces/tagspaces-md": "4.5.38",
"aws-amplify": "^4.3.8",
diff --git a/release/app/package.json b/release/app/package.json
index 8dcc768bd..c41d4a698 100644
--- a/release/app/package.json
+++ b/release/app/package.json
@@ -19,8 +19,8 @@
"dependencies": {
"@elife/pm2": "3.6.1",
"@tagspaces/extensions": "1.0.152",
- "@tagspaces/tagspaces-common-node": "4.5.48",
- "@tagspaces/tagspaces-ws": "4.5.48",
+ "@tagspaces/tagspaces-common-node": "4.5.49",
+ "@tagspaces/tagspaces-ws": "4.5.49",
"sharp": "0.32.6",
"ws": "8.16.0"
},
diff --git a/src/renderer/hooks/DirectoryContentContextProvider.tsx b/src/renderer/hooks/DirectoryContentContextProvider.tsx
index 4d92b2ed5..9515815b5 100644
--- a/src/renderer/hooks/DirectoryContentContextProvider.tsx
+++ b/src/renderer/hooks/DirectoryContentContextProvider.tsx
@@ -16,20 +16,32 @@
*
*/
-import React, {
- createContext,
- useEffect,
- useMemo,
- useReducer,
- useRef,
-} from 'react';
-import { useDispatch, useSelector } from 'react-redux';
+import AppConfig from '-/AppConfig';
+import LoadingLazy from '-/components/LoadingLazy';
+import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';
+import { useEditedEntryContext } from '-/hooks/useEditedEntryContext';
+import { useEditedEntryMetaContext } from '-/hooks/useEditedEntryMetaContext';
+import { useNotificationContext } from '-/hooks/useNotificationContext';
+import { useSelectedEntriesContext } from '-/hooks/useSelectedEntriesContext';
+import { PerspectiveIDs } from '-/perspectives';
+import { defaultSettings as defaultGridSettings } from '-/perspectives/grid';
+import { defaultSettings as defaultListSettings } from '-/perspectives/list';
+import { Pro } from '-/pro';
import { actions as AppActions, AppDispatch } from '-/reducers/app';
+import {
+ actions as SettingsActions,
+ getDefaultPerspective,
+ getShowUnixHiddenEntries,
+} from '-/reducers/settings';
+import { executePromisesInBatches, updateFsEntries } from '-/services/utils-io';
import { TS } from '-/tagspaces.namespace';
-import { useTranslation } from 'react-i18next';
+import { CommonLocation } from '-/utils/CommonLocation';
+import { arrayBufferToDataURL, updateHistory } from '-/utils/dom';
+import { useCancelable } from '-/utils/useCancelable';
+import useFirstRender from '-/utils/useFirstRender';
import {
- cleanTrailingDirSeparator,
cleanFrontDirSeparator,
+ cleanTrailingDirSeparator,
extractContainingDirectoryPath,
extractParentDirectoryPath,
getMetaFileLocationForDir,
@@ -37,28 +49,16 @@ import {
getThumbFileLocationForDirectory,
getThumbFileLocationForFile,
} from '@tagspaces/tagspaces-common/paths';
-import { executePromisesInBatches, updateFsEntries } from '-/services/utils-io';
-import AppConfig from '-/AppConfig';
-import { PerspectiveIDs } from '-/perspectives';
-import { arrayBufferToDataURL, updateHistory } from '-/utils/dom';
-import {
- actions as SettingsActions,
- getDefaultPerspective,
- getShowUnixHiddenEntries,
-} from '-/reducers/settings';
import { enhanceEntry, getUuid } from '@tagspaces/tagspaces-common/utils-io';
-import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';
-import { useNotificationContext } from '-/hooks/useNotificationContext';
-import { useSelectedEntriesContext } from '-/hooks/useSelectedEntriesContext';
-import { Pro } from '-/pro';
-import { defaultSettings as defaultGridSettings } from '-/perspectives/grid';
-import { defaultSettings as defaultListSettings } from '-/perspectives/list';
-import { useEditedEntryContext } from '-/hooks/useEditedEntryContext';
-import { useEditedEntryMetaContext } from '-/hooks/useEditedEntryMetaContext';
-import { CommonLocation } from '-/utils/CommonLocation';
-import { useCancelable } from '-/utils/useCancelable';
-import LoadingLazy from '-/components/LoadingLazy';
-import useFirstRender from '-/utils/useFirstRender';
+import React, {
+ createContext,
+ useEffect,
+ useMemo,
+ useReducer,
+ useRef,
+} from 'react';
+import { useTranslation } from 'react-i18next';
+import { useDispatch, useSelector } from 'react-redux';
type DirectoryContentContextData = {
currentLocationPath: string;
@@ -846,7 +846,7 @@ export const DirectoryContentContextProvider = ({
const promise = location
.listDirectoryPromise(
directoryPath,
- location.fullTextIndex ? ['extractTextContent'] : [],
+ [], // location.fullTextIndex ? ['extractTextContent'] : [],
currentLocation ? currentLocation.ignorePatternPaths : [],
resultsLimit,
)