Skip to content

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

fix navigation in search results https://github.com/tagspaces/tagspaces/issues/1926 (#1928)

Stanimire86dc719206b
diff --git a/app/reducers/app.ts b/app/reducers/app.ts
index ab02a4c2b..8d7a00167 100644
--- a/app/reducers/app.ts
+++ b/app/reducers/app.ts
@@ -2367,7 +2367,9 @@ export const actions = {
const nextFile = getNextFile(
path,
lastSelectedEntry ? lastSelectedEntry.path : undefined,
- getState().app.currentDirectoryEntries
+ getState().app.searchMode
+ ? GlobalSearch.results
+ : getState().app.currentDirectoryEntries
);
if (nextFile !== undefined) {
dispatch(actions.openFsEntry(nextFile));
@@ -2384,7 +2386,9 @@ export const actions = {
const prevFile = getPrevFile(
path,
lastSelectedEntry ? lastSelectedEntry.path : undefined,
- getState().app.currentDirectoryEntries
+ getState().app.searchMode
+ ? GlobalSearch.results
+ : getState().app.currentDirectoryEntries
);
if (prevFile !== undefined) {
dispatch(actions.openFsEntry(prevFile));