Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/lang/ar-ye.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/be-by.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/bn-bd.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/cs-cz.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/de-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
2 changes: 2 additions & 0 deletions src/lang/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,8 @@
"settings-info-app-console": "Choose which debug console integration Acode uses.",
"settings-info-app-default-file-encoding": "Default encoding when opening or creating files.",
"settings-info-app-exclude-folders": "Skip folders and patterns while searching or scanning.",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"settings-info-app-floating-button": "Show the floating quick actions button.",
"settings-info-app-font-manager": "Install, manage, or remove app fonts.",
"settings-info-app-fullscreen": "Hide the system status bar while using Acode.",
Expand Down
4 changes: 3 additions & 1 deletion src/lang/es-sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/fr-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/he-il.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/hi-in.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/hu-hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Kezelt",
"acode service": "Acode-szolgáltatás",
"info-terminal-show-scrollbar": "Az xterm görgetősávjának megjelenítése a terminál mellett.",
"terminal:show scrollbar": "Görgetősáv megjelenítése"
"terminal:show scrollbar": "Görgetősáv megjelenítése",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/id-id.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Dikelola",
"acode service": "Layanan Acode",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
2 changes: 2 additions & 0 deletions src/lang/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,8 @@ declare type LangStrings = {
"settings-info-app-console": string;
"settings-info-app-default-file-encoding": string;
"settings-info-app-exclude-folders": string;
"apply exclusions when copying": string;
"settings-info-app-use-file-operation-exclusions": string;
"settings-info-app-floating-button": string;
"settings-info-app-font-manager": string;
"settings-info-app-fullscreen": string;
Expand Down
4 changes: 3 additions & 1 deletion src/lang/ir-fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/it-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/ja-jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/ko-kr.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/ml-in.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/mm-unicode.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/mm-zawgyi.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/pl-pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/pu-in.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/ru-ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/tl-ph.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/tr-tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/uk-ua.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/uz-uz.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/vi-vn.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/zh-hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
4 changes: 3 additions & 1 deletion src/lang/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,5 +831,7 @@
"managed": "Managed",
"acode service": "Acode Service",
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar"
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
}
15 changes: 14 additions & 1 deletion src/lib/openFolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import confirm from "dialogs/confirm";
import prompt from "dialogs/prompt";
import select from "dialogs/select";
import escapeStringRegexp from "escape-string-regexp";
import copyEntry from "utils/copyEntry";
import helpers from "utils/helpers";
import Path from "utils/Path";
import Uri from "utils/Uri";
Expand Down Expand Up @@ -776,7 +777,19 @@ function execOperation(type, action, url, $target, name) {
newUrl = await fs.moveTo(url);
}
} else {
newUrl = await fs.copyTo(url);
if (appSettings.value.useFileOperationExclusions) {
const result = await copyEntry(clipBoard.url, url, {
excludePatterns: appSettings.value.excludeFolders,
});
newUrl = result.url;
if (!newUrl) {
toast(strings.skipped);
clearClipboard();
return;
}
} else {
newUrl = await fs.copyTo(url);
}
}
stopLoading();

Expand Down
1 change: 1 addition & 0 deletions src/lib/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ class Settings {
16, 19, 17, 23, 24, 25, 26, 27, 28, 29, 30, 31,
],
excludeFolders: this.#excludeFolders,
useFileOperationExclusions: true,
defaultFileEncoding: "UTF-8",
inlineAutoCompletion: true,
colorPreview: true,
Expand Down
Loading