Skip to content

Commit 9dfc287

Browse files
authored
Merge pull request #90 from cpoco/develop
0.0.61
2 parents 4779356 + fc186e6 commit 9dfc287

37 files changed

Lines changed: 732 additions & 329 deletions

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939
npx tsx pkg/native/test/test_icon.cts
4040
npx tsx pkg/native/test/test_link.cts
4141
npx tsx pkg/native/test/test_operation.cts
42+
npx tsx pkg/native/test/test_depth.cts
4243
npx tsx pkg/native/test/test_os.cts
44+
npx tsx pkg/native/test/test_arc.cts
4345
npx tsx pkg/native/test/test_arc_tar.cts
4446
npx tsx pkg/native/test/test_arc_tgz.cts
4547
npx tsx pkg/native/test/test_arc_zip.cts

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Windows と Mac で同じファイラーを使いたかったので作りまし
1414
- ファイル操作
1515
- 正規表現による再帰検索
1616
- ビューア
17+
- アーカイブ (7z / rar / tar / tar.gz / tgz / tar.xz / txz / zip)
1718
- 画像 (gif / jpg / jpeg / png / webp)
1819
- 音声 (mp3 / m4a / ogg / wav / wave)
1920
- 動画 (mp4 / webm)

config/sys.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@
33
"ver": "0.1",
44
"styleFontFamily": "Consolas, Menlo, monospace",
55
"styleFontSize": 14,
6-
"styleLineHeight": 18
6+
"styleLineHeight": 18,
7+
"favorites": [
8+
{
9+
"name": "home",
10+
"path": "~"
11+
}
12+
]
713
}

config/sys.schema

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"ver",
66
"styleFontFamily",
77
"styleFontSize",
8-
"styleLineHeight"
8+
"styleLineHeight",
9+
"favorites"
910
],
1011
"properties": {
1112
"$schema": {
@@ -28,6 +29,27 @@
2829
"styleLineHeight": {
2930
"type": "number",
3031
"minimum": 1
32+
},
33+
"favorites": {
34+
"type": "array",
35+
"items": {
36+
"type": "object",
37+
"additionalProperties": false,
38+
"required": [
39+
"name",
40+
"path"
41+
],
42+
"properties": {
43+
"name": {
44+
"type": "string",
45+
"minLength": 1
46+
},
47+
"path": {
48+
"type": "string",
49+
"minLength": 1
50+
}
51+
}
52+
}
3153
}
3254
}
3355
}

dprint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"**/node_modules"
1313
],
1414
"plugins": [
15-
"https://plugins.dprint.dev/typescript-0.95.13.wasm"
15+
"https://plugins.dprint.dev/typescript-0.95.15.wasm"
1616
]
1717
}

extension/src/fs.trash.cts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,24 @@ module.exports = async (ex: Extension): Promise<void> => {
1111
title: title,
1212
text: ex.active.cursor[0].full,
1313
})
14-
15-
if (alert !== null) {
16-
await ex.filer.trash(ex.active.cursor[0].full)
14+
if (alert === null) {
15+
return
1716
}
17+
18+
await ex.filer.trash(ex.active.cursor[0].full)
1819
}
1920
else {
2021
const alert = await ex.dialog.open({
2122
type: "alert",
2223
title: title,
2324
text: `${ex.active.select.length} files`,
2425
})
26+
if (alert === null) {
27+
return
28+
}
2529

26-
if (alert !== null) {
27-
for (const v of ex.active.select) {
28-
await ex.filer.trash(v[0].full)
29-
}
30+
for (const v of ex.active.select) {
31+
await ex.filer.trash(v[0].full)
3032
}
3133
}
3234

extension/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
"./src/*",
1515
],
1616
},
17+
"types": [
18+
"@types/node",
19+
],
1720

1821
// Type Checking
1922
"alwaysStrict": true,

0 commit comments

Comments
 (0)