Skip to content

Commit e49acd4

Browse files
committed
Merge remote-tracking branch 'origin/main' into codemirror
2 parents 6c2f73a + 5e7e910 commit e49acd4

File tree

5 files changed

+121
-95
lines changed

5 files changed

+121
-95
lines changed

package-lock.json

Lines changed: 44 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@
160160
"markdown-it-footnote": "^4.0.0",
161161
"markdown-it-github-alerts": "^1.0.0",
162162
"markdown-it-task-lists": "^2.1.1",
163-
"mime-types": "^3.0.2",
164-
"minimatch": "^10.1.1",
163+
"mime-types": "^3.0.1",
165164
"moment": "^2.30.1",
166165
"mustache": "^4.2.0",
166+
"picomatch": "^4.0.3",
167167
"url-parse": "^1.5.10",
168168
"vanilla-picker": "^2.12.3",
169169
"yargs": "^18.0.0"

src/lang/id-id.json

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -304,26 +304,26 @@
304304
"info-scroll-settings": "Pengaturan ini berisi pengaturan gulir termasuk bungkus teks.",
305305
"info-animation": "Jika aplikasi terasa lag, nonaktifkan animasi.",
306306
"info-quicktoolstriggermode": "Jika tombol dalam alat cepat tidak berfungsi, cobalah untuk mengubah nilai ini.",
307-
"info-checkForAppUpdates": "Check for app updates automatically.",
308-
"info-quickTools": "Show or hide quick tools.",
309-
"info-showHiddenFiles": "Show hidden files and folders. (Start with .)",
310-
"info-all_file_access": "Enable access of /sdcard and /storage in terminal.",
311-
"info-fontSize": "The font size used to render text.",
312-
"info-fontFamily": "The font family used to render text.",
313-
"info-theme": "The color theme of the terminal.",
314-
"info-cursorStyle": "The style of the cursor when the terminal is focused.",
315-
"info-cursorInactiveStyle": "The style of the cursor when the terminal is not focused.",
316-
"info-fontWeight": "The font weight used to render non-bold text.",
317-
"info-cursorBlink": "Whether the cursor blinks.",
318-
"info-scrollback": "The amount of scrollback in the terminal. Scrollback is the amount of rows that are retained when lines are scrolled beyond the initial viewport.",
319-
"info-tabStopWidth": "The size of tab stops in the terminal.",
320-
"info-letterSpacing": "The spacing in whole pixels between characters.",
321-
"info-imageSupport": "Whether images are supported in the terminal.",
322-
"info-fontLigatures": "Whether font ligatures are enabled in the terminal.",
323-
"info-confirmTabClose": "Ask for confirmation before closing terminal tabs.",
324-
"info-backup": "Creates a backup of the terminal installation.",
325-
"info-restore": "Restores a backup of the terminal installation.",
326-
"info-uninstall": "Uninstalls the terminal installation.",
307+
"info-checkForAppUpdates": "Periksa pembaruan aplikasi secara otomatis.",
308+
"info-quickTools": "Tampilkan atau sembunyikan alat cepat.",
309+
"info-showHiddenFiles": "Tampilkan berkas dan folder tersembunyi. (Berawal dengan .)",
310+
"info-all_file_access": "Aktifkan akses ke /sdcard dan /storage di terminal.",
311+
"info-fontSize": "Ukuran font yang digunakan untuk menampilkan teks.",
312+
"info-fontFamily": "Jenis huruf yang digunakan untuk menampilkan teks.",
313+
"info-theme": "Tema warna terminal.",
314+
"info-cursorStyle": "Gaya kursor saat terminal sedang aktif.",
315+
"info-cursorInactiveStyle": "Gaya kursor saat terminal tidak terfokus.",
316+
"info-fontWeight": "Ketebalan font yang digunakan untuk menampilkan teks tidak tebal.",
317+
"info-cursorBlink": "Apakah kursor berkedip.",
318+
"info-scrollback": "Jumlah scrollback di terminal. Scrollback adalah jumlah baris yang dipertahankan ketika baris digulirkan melampaui tampilan awal.",
319+
"info-tabStopWidth": "Ukuran tab berhenti di terminal.",
320+
"info-letterSpacing": "Jarak antar karakter dalam piksel penuh.",
321+
"info-imageSupport": "Apakah gambar didukung di terminal.",
322+
"info-fontLigatures": "Apakah ligatur font diaktifkan di terminal.",
323+
"info-confirmTabClose": "Mintalah konfirmasi sebelum menutup tab terminal.",
324+
"info-backup": "Membuat cadangan instalasi terminal.",
325+
"info-restore": "Mengembalikan cadangan instalasi terminal.",
326+
"info-uninstall": "Menghapus instalasi terminal.",
327327
"owned": "Dimiliki",
328328
"api_error": "API server turun, silakan coba setelah beberapa waktu.",
329329
"installed": "Terpasang",
@@ -439,8 +439,8 @@
439439
"terminal:cursor style": "Gaya Kursor",
440440
"terminal:font family": "Keluarga Huruf",
441441
"terminal:convert eol": "Konversi Akhir Baris",
442-
"terminal:confirm tab close": "Confirm terminal tab close",
443-
"terminal:image support": "Image support",
442+
"terminal:confirm tab close": "Konfirmasi penutupan tab terminal",
443+
"terminal:image support": "Dukungan gambar",
444444
"terminal": "Terminal",
445445
"allFileAccess": "Semua akses berkas",
446446
"fonts": "Huruf",
@@ -455,49 +455,49 @@
455455
"keywords": "Kata kunci",
456456
"author": "Pembuat",
457457
"filtered by": "Disaring oleh",
458-
"clean install state": "Clean Install State",
459-
"backup created": "Backup created",
460-
"restore completed": "Restore completed",
461-
"restore will include": "This will restore",
462-
"restore warning": "This action cannot be undone. Continue?",
463-
"reload to apply": "Reload to apply changes?",
464-
"reload app": "Reload app",
465-
"preparing backup": "Preparing backup",
466-
"collecting settings": "Collecting settings",
467-
"collecting key bindings": "Collecting key bindings",
468-
"collecting plugins": "Collecting plugin information",
469-
"creating backup": "Creating backup file",
470-
"validating backup": "Validating backup",
471-
"restoring key bindings": "Restoring key bindings",
472-
"restoring plugins": "Restoring plugins",
473-
"restoring settings": "Restoring settings",
474-
"legacy backup warning": "This is an older backup format. Some features may be limited.",
475-
"checksum mismatch": "Checksum mismatch - backup file may have been modified or corrupted.",
476-
"plugin not found": "Plugin not found in registry",
477-
"paid plugin skipped": "Paid plugin - purchase not found",
478-
"source not found": "Source file no longer exists",
479-
"restored": "Restored",
480-
"skipped": "Skipped",
481-
"backup not valid object": "Backup file is not a valid object",
482-
"backup no data": "Backup file contains no data to restore",
483-
"backup legacy warning": "This is an older backup format (v1). Some features may be limited.",
484-
"backup missing metadata": "Missing backup metadata - some info may be unavailable",
485-
"backup checksum mismatch": "Checksum mismatch - backup file may have been modified or corrupted. Proceed with caution.",
486-
"backup checksum verify failed": "Could not verify checksum",
487-
"backup invalid settings": "Invalid settings format",
488-
"backup invalid keybindings": "Invalid keyBindings format",
489-
"backup invalid plugins": "Invalid installedPlugins format",
490-
"issues found": "Issues found",
491-
"error details": "Error details",
492-
"active tools": "Active tools",
493-
"available tools": "Available tools",
494-
"recent": "Recent Files",
495-
"command palette": "Open Command Palette",
496-
"change theme": "Change Theme",
497-
"documentation": "Documentation",
498-
"open in terminal": "Open in Terminal",
499-
"developer mode": "Developer Mode",
500-
"info-developermode": "Enable developer tools (Eruda) for debugging plugins and inspecting app state. Inspector will be initialized on app start.",
501-
"developer mode enabled": "Developer mode enabled. Use command palette to toggle inspector (Ctrl+Shift+I).",
502-
"developer mode disabled": "Developer mode disabled"
458+
"clean install state": "Bersihkan kondisi instal",
459+
"backup created": "Cadangan dibuat",
460+
"restore completed": "Pemulihan selesai",
461+
"restore will include": "Ini akan memulihkan",
462+
"restore warning": "Tindakan ini tidak dapat dibatalkan. Lanjutkan?",
463+
"reload to apply": "Muat ulang untuk menerapkan perubahan?",
464+
"reload app": "Muat ulang aplikasi",
465+
"preparing backup": "Mempersiapkan cadangan",
466+
"collecting settings": "Mengumpulkan pengaturan",
467+
"collecting key bindings": "Mengumpulkan binding kunci",
468+
"collecting plugins": "Mengumpulkan informasi plugin",
469+
"creating backup": "Membuat berkas cadangan",
470+
"validating backup": "Memvalidasi cadangan",
471+
"restoring key bindings": "Mengembalikan binding kunci",
472+
"restoring plugins": "Memulihkan plugin",
473+
"restoring settings": "Memulihkan pengaturan",
474+
"legacy backup warning": "Ini adalah format pencadangan lama. Beberapa fitur mungkin terbatas.",
475+
"checksum mismatch": "Ketidakcocokan checksum - berkas cadangan mungkin telah dimodifikasi atau rusak.",
476+
"plugin not found": "Plugin tidak ditemukan di registri.",
477+
"paid plugin skipped": "Plugin berbayar - pembelian tidak ditemukan",
478+
"source not found": "Berkas sumber tidak lagi ada.",
479+
"restored": "Dipulihkan",
480+
"skipped": "Dilewati",
481+
"backup not valid object": "Berkas cadangan bukan objek yang valid",
482+
"backup no data": "Berkas cadangan tidak berisi data untuk dipulihkan.",
483+
"backup legacy warning": "Ini adalah format pencadangan lama (v1). Beberapa fitur mungkin terbatas.",
484+
"backup missing metadata": "Metadata cadangan hilang - beberapa informasi mungkin tidak tersedia.",
485+
"backup checksum mismatch": "Ketidakcocokan checksum - berkas cadangan mungkin telah dimodifikasi atau rusak. Lanjutkan dengan hati-hati.",
486+
"backup checksum verify failed": "Checksum tidak dapat diverifikasi.",
487+
"backup invalid settings": "Format pengaturan tidak valid",
488+
"backup invalid keybindings": "Format keyBindings tidak valid",
489+
"backup invalid plugins": "Format installedPlugins tidak valid",
490+
"issues found": "Masalah ditemukan",
491+
"error details": "Detail kesalahan",
492+
"active tools": "Alat-alat yang aktif",
493+
"available tools": "Alat-alat yang tersedia",
494+
"recent": "Berkas terbaru",
495+
"command palette": "Buka Palet Perintah",
496+
"change theme": "Ganti tema",
497+
"documentation": "Dokumentasi",
498+
"open in terminal": "Buka di Terminal",
499+
"developer mode": "Mode Pengembang",
500+
"info-developermode": "Aktifkan alat pengembang (Eruda) untuk men-debug plugin dan memeriksa status aplikasi. Inspektor akan diinisialisasi saat aplikasi dimulai.",
501+
"developer mode enabled": "Mode pengembang diaktifkan. Gunakan palet perintah untuk mengaktifkan/menonaktifkan inspektor (Ctrl+Shift+I).",
502+
"developer mode disabled": "Mode pengembang dinonaktifkan"
503503
}

src/lib/fileList.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fsOperation from "fileSystem";
22
import toast from "components/toast";
3-
import { minimatch } from "minimatch";
3+
import picomatch from "picomatch/posix";
44
import Url from "utils/Url";
55
import { addedFolder } from "./openFolder";
66
import settings from "./settings";
@@ -310,8 +310,10 @@ async function createChildTree(parent, item, root) {
310310

311311
parent.children.push(file);
312312
if (isDirectory) {
313-
const ignore = !!settings.value.excludeFolders.find((folder) =>
314-
minimatch(Url.join(file.path, ""), folder, { matchBase: true }),
313+
const ignore = picomatch.isMatch(
314+
Url.join(file.path, ""),
315+
settings.value.excludeFolders,
316+
{ matchBase: true },
315317
);
316318
if (ignore) return;
317319

src/sidebarApps/searchInFiles/worker.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import "core-js/stable";
2-
import { minimatch } from "minimatch";
2+
import picomatch from "picomatch/posix";
33

44
const resolvers = {};
55

@@ -283,12 +283,8 @@ function Skip({ exclude, include }) {
283283
function test(file) {
284284
if (!file.path) return false;
285285
const match = (pattern) =>
286-
minimatch(file.path, pattern, { matchBase: true });
287-
const isExcluded = excludeFiles.some(match);
288-
const isIncluded = includeFiles.some(match);
289-
const userIncluded = include && include.trim().length > 0 && isIncluded;
290-
if (userIncluded) return false;
291-
return isExcluded || !isIncluded;
286+
picomatch.isMatch(file.path, pattern, { matchBase: true });
287+
return excludeFiles.some(match) || !includeFiles.some(match);
292288
}
293289

294290
return {

0 commit comments

Comments
 (0)