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
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ jobs:
npx tsx pkg/native/test/test_icon.cts
npx tsx pkg/native/test/test_link.cts
npx tsx pkg/native/test/test_operation.cts
npx tsx pkg/native/test/test_depth.cts
npx tsx pkg/native/test/test_os.cts
npx tsx pkg/native/test/test_arc.cts
npx tsx pkg/native/test/test_arc_tar.cts
npx tsx pkg/native/test/test_arc_tgz.cts
npx tsx pkg/native/test/test_arc_zip.cts
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Windows と Mac で同じファイラーを使いたかったので作りまし
- ファイル操作
- 正規表現による再帰検索
- ビューア
- アーカイブ (7z / rar / tar / tar.gz / tgz / tar.xz / txz / zip)
- 画像 (gif / jpg / jpeg / png / webp)
- 音声 (mp3 / m4a / ogg / wav / wave)
- 動画 (mp4 / webm)
Expand Down
8 changes: 7 additions & 1 deletion config/sys.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@
"ver": "0.1",
"styleFontFamily": "Consolas, Menlo, monospace",
"styleFontSize": 14,
"styleLineHeight": 18
"styleLineHeight": 18,
"favorites": [
{
"name": "home",
"path": "~"
}
]
}
24 changes: 23 additions & 1 deletion config/sys.schema
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"ver",
"styleFontFamily",
"styleFontSize",
"styleLineHeight"
"styleLineHeight",
"favorites"
],
"properties": {
"$schema": {
Expand All @@ -28,6 +29,27 @@
"styleLineHeight": {
"type": "number",
"minimum": 1
},
"favorites": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"path"
],
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"path": {
"type": "string",
"minLength": 1
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"**/node_modules"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.95.13.wasm"
"https://plugins.dprint.dev/typescript-0.95.15.wasm"
]
}
16 changes: 9 additions & 7 deletions extension/src/fs.trash.cts
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,24 @@ module.exports = async (ex: Extension): Promise<void> => {
title: title,
text: ex.active.cursor[0].full,
})

if (alert !== null) {
await ex.filer.trash(ex.active.cursor[0].full)
if (alert === null) {
return
}

await ex.filer.trash(ex.active.cursor[0].full)
}
else {
const alert = await ex.dialog.open({
type: "alert",
title: title,
text: `${ex.active.select.length} files`,
})
if (alert === null) {
return
}

if (alert !== null) {
for (const v of ex.active.select) {
await ex.filer.trash(v[0].full)
}
for (const v of ex.active.select) {
await ex.filer.trash(v[0].full)
}
}

Expand Down
3 changes: 3 additions & 0 deletions extension/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"./src/*",
],
},
"types": [
"@types/node",
],

// Type Checking
"alwaysStrict": true,
Expand Down
Loading