Skip to content

Commit 58f10ed

Browse files
authored
release: 1.0.0 (#1)
* fix: refactor closeTabs logic * feat: list closed tabs by QuickPick * feat: rename project with Tab Archive; Dedup closed tabs * feat: remove unopened archived files; add logo * ci: supports vscode and open-vsx, bump actions version
1 parent 3186105 commit 58f10ed

File tree

12 files changed

+171
-195
lines changed

12 files changed

+171
-195
lines changed

.github/workflows/publish-extension.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
publish-extension:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

1515
- run: echo "nvmrc=$(cat .nvmrc)" >> $GITHUB_ENV
1616
id: nvmrc
1717

18-
- uses: actions/setup-node@v3
18+
- uses: actions/setup-node@v4
1919
with:
2020
node-version: "${{ env.nvmrc }}"
2121
cache: npm
@@ -24,7 +24,11 @@ jobs:
2424

2525
- env:
2626
VSCE_PAT: ${{ secrets.VSCE_PAT }}
27-
run: npm run publish
27+
OVSX_PAT: ${{ secrets.OVSX_PAT }}
28+
29+
run: |
30+
npm run publish
31+
npm run ovsx-publish
2832
2933
# - name: Setup tmate session
3034
# if: ${{ always() }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
out
33
.vscode-test/
44
*.vsix
5+
bun.lock

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18.14.0
1+
v18.20.7

CHANGELOG.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,4 @@
22

33
### 1.0.0
44

5-
Initial release of Auto Close Tabs.
6-
7-
## 1.1.0
8-
9-
- Improve display of automatically closed tabs.
10-
11-
## 1.1.1
12-
13-
- Fix padding of dates and times
5+
Initial release of Tab Archive forked from https://github.com/Zwyx/vscode-autoclosetabs.

README.md

Lines changed: 25 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,62 @@
1-
# Auto Close Tabs
1+
# Tab Archive
22

3-
- **Automatically closes tabs that have not been used for a defined length of time** — 12 hours, by default.
3+
- **Automatically archives tabs that have not been used for a defined length of time** — 12 hours, by default.
44

5-
- **Only closes tabs if the group contains more than a defined number of tabs** — 5, by default.
5+
- **Only archives tabs if the group contains more than a defined number of tabs** — 5, by default.
66

7-
- **Doesn't close tabs that have changes, tabs that are pinned, and the active tab** of each group.
7+
- **Doesn't archive tabs that have changes, tabs that are pinned, and the active tab** of each group.
88

99
The age of the opened tabs is persisted when the workspace is closed, and resumes incrementing when the workspace is reopened.
1010

1111
## Commands
1212

13-
In addition to automatically closing unused tabs, the extension provides the following commands.
13+
In addition to automatically archiving unused tabs, the extension provides the following commands.
1414

15-
### `Auto Close Tabs: Close as many tabs as possible`
15+
### `Tab Archive: Archive as many tabs as possible`
1616

17-
Close all tabs except the 5 (by default) most recently used ones, in each group. (It also doesn't close tabs with changes, pinned tabs, and the active one.)
17+
Archive all tabs except the 5 (by default) most recently used ones, in each group. (It also doesn't archive tabs with changes, pinned tabs, and the active one.)
1818

19-
### `Auto Close Tabs: List recently closed tabs`
19+
### `Tab Archive: List recently archived tabs`
2020

21-
List the tabs that have been automatically closed since the workspace was opened. Use it to adjust the `autoclosetabs.numberOfTabsInGroup` and `autoclosetabs.tabAgeForAutomaticClosing` settings if you find that tabs are closed more/less often than you wish.
21+
List the tabs that have been automatically archived since the workspace was opened. Use it to adjust the `tabarchive.numberOfTabsInGroup` and `tabarchive.tabAgeForAutomaticArchiving` settings if you find that tabs are archived more/less often than you wish.
2222

2323
## Settings
2424

25-
### `autoclosetabs.activation`
25+
### `tabarchive.activation`
2626

2727
Can be one of two values:
2828

29-
- `everywhere-except-excluded`: the extension will automatically close unused tabs in all workspaces, except the ones present in the `Excluded` list;
30-
- `nowhere-except-included`: the extension will automatically close unused tabs only in the workspaces present in the `Included` list.
29+
- `everywhere-except-excluded`: the extension will automatically archive unused tabs in all workspaces, except the ones present in the `Excluded` list;
30+
- `nowhere-except-included`: the extension will automatically archive unused tabs only in the workspaces present in the `Included` list.
3131

3232
The default value is `everywhere-except-excluded`.
3333

34-
> Note: this way of activating tab auto-closing allows you to do it on a per project/workspace basis, without relying on a project's `.vscode/settings.json` file, as this file is often committed and shared with collaborators.
34+
> Note: this way of activating tab auto-archiving allows you to do it on a per project/workspace basis, without relying on a project's `.vscode/settings.json` file, as this file is often committed and shared with collaborators.
3535
36-
### `autoclosetabs.excludedWorkspaces`
36+
### `tabarchive.excludedWorkspaces`
3737

38-
> This setting is only used when `autoclosetabs.activation` is equal to `everywhere-except-excluded`.
38+
> This setting is only used when `tabarchive.activation` is equal to `everywhere-except-excluded`.
3939
40-
List of workspaces in which the extension will not automatically close unused tabs.
40+
List of workspaces in which the extension will not automatically archive unused tabs.
4141

42-
To add a workspace to this list, use the command `Auto Close Tabs: Deactivate automatic closing of unused tabs for this workspace`.
42+
To add a workspace to this list, use the command `Tab Archive: Deactivate automatic archiving of unused tabs for this workspace`.
4343

44-
### `autoclosetabs.includedWorkspaces`
44+
### `tabarchive.includedWorkspaces`
4545

46-
> This setting is only used when `autoclosetabs.activation` is equal to `nowhere-except-included`.
46+
> This setting is only used when `tabarchive.activation` is equal to `nowhere-except-included`.
4747
48-
List of workspaces in which the extension will automatically close unused tabs.
48+
List of workspaces in which the extension will automatically archive unused tabs.
4949

50-
To add a workspace to this list, use the command `Auto Close Tabs: Activate automatic closing of unused tabs for this workspace`.
50+
To add a workspace to this list, use the command `Tab Archive: Activate automatic archiving of unused tabs for this workspace`.
5151

52-
### `autoclosetabs.numberOfTabsInGroup`
52+
### `tabarchive.numberOfTabsInGroup`
5353

54-
Unused tabs will be closed only if the number of tabs in the group is greater than this number; enter `0` to close all unused tabs.
54+
Unused tabs will be archived only if the number of tabs in the group is greater than this number; enter `0` to archive all unused tabs.
5555

5656
The default value is `5`.
5757

58-
### `autoclosetabs.tabAgeForAutomaticClosing`
58+
### `tabarchive.tabAgeForAutomaticArchiving`
5959

60-
Number of hours after which an unused tab is automatically closed.
60+
Number of hours after which an unused tab is automatically archived.
6161

6262
The default value is `12`.
63-
64-
## Release notes
65-
66-
### 1.0.0
67-
68-
Initial release of Auto Close Tabs.
69-
70-
## 1.1.0
71-
72-
- Improve display of automatically closed tabs.

Zwyx-220x220-rounded.png

-25.1 KB
Binary file not shown.

logo-220x220.png

4.2 KB
Loading

package-lock.json

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

package.json

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "autoclosetabs",
3-
"displayName": "Auto Close Tabs",
4-
"icon": "Zwyx-220x220-rounded.png",
5-
"description": "Automatically close unused tabs",
6-
"version": "1.1.3",
7-
"publisher": "zwyx",
8-
"repository": "github:zwyx/vscode-autoclosetabs",
2+
"name": "tabarchive",
3+
"displayName": "Tab Archive",
4+
"icon": "logo-220x220.png",
5+
"description": "Unused tab archive",
6+
"version": "1.0.0",
7+
"publisher": "guza",
8+
"repository": "github:guuzaa/vscode-tabarchive",
99
"engines": {
1010
"vscode": "^1.80.0"
1111
},
@@ -19,79 +19,79 @@
1919
"contributes": {
2020
"configuration": [
2121
{
22-
"title": "Auto Close Tabs",
22+
"title": "Tab Archive",
2323
"properties": {
24-
"autoclosetabs.activation": {
24+
"tabarchive.activation": {
2525
"type": "string",
2626
"default": "everywhere-except-excluded",
2727
"enum": [
2828
"everywhere-except-excluded",
2929
"nowhere-except-included"
3030
],
3131
"markdownEnumDescriptions": [
32-
"Automatically close unused tabs in all workspaces, except the workspaces present in the Excluded list.",
33-
"Automatically close unused tabs only in the workspaces present in the Included list."
32+
"Automatically archive unused tabs in all workspaces, except the workspaces present in the Excluded list.",
33+
"Automatically archive unused tabs only in the workspaces present in the Included list."
3434
],
35-
"markdownDescription": "`everywhere-except-excluded`: automatically close unused tabs in all workspaces, except the workspaces present in the Excluded list.\n\n`nowhere-except-included`: automatically close unused tabs only in the workspaces present in the Included list."
35+
"markdownDescription": "`everywhere-except-excluded`: automatically archive unused tabs in all workspaces, except the workspaces present in the Excluded list.\n\n`nowhere-except-included`: automatically archive unused tabs only in the workspaces present in the Included list."
3636
},
37-
"autoclosetabs.excludedWorkspaces": {
37+
"tabarchive.excludedWorkspaces": {
3838
"type": "array",
3939
"items": {
4040
"type": "string"
4141
},
4242
"default": [],
43-
"markdownDescription": "List of workspaces in which unused tabs will not be automatically closed. Only used when `autoclosetabs.activation` is equal to `everywhere-except-excluded`."
43+
"markdownDescription": "List of workspaces in which unused tabs will not be automatically archived. Only used when `tabarchive.activation` is equal to `everywhere-except-excluded`."
4444
},
45-
"autoclosetabs.includedWorkspaces": {
45+
"tabarchive.includedWorkspaces": {
4646
"type": "array",
4747
"items": {
4848
"type": "string"
4949
},
5050
"default": [],
51-
"markdownDescription": "List of workspaces in which unused tabs will be automatically closed. Only used when `autoclosetabs.activation` is equal to `nowhere-except-included`."
51+
"markdownDescription": "List of workspaces in which unused tabs will be automatically archived. Only used when `tabarchive.activation` is equal to `nowhere-except-included`."
5252
},
53-
"autoclosetabs.numberOfTabsInGroup": {
53+
"tabarchive.numberOfTabsInGroup": {
5454
"type": "number",
5555
"minimum": 0,
5656
"default": 5,
57-
"markdownDescription": "Unused tabs will be closed only if the number of tabs in the group is greater than this number; enter `0` to close all unused tabs."
57+
"markdownDescription": "Unused tabs will be archived only if the number of tabs in the group is greater than this number; enter `0` to archive all unused tabs."
5858
},
59-
"autoclosetabs.tabAgeForAutomaticClosing": {
59+
"tabarchive.tabAgeForAutomaticArchiving": {
6060
"type": "number",
6161
"minimum": 1,
6262
"default": 12,
63-
"markdownDescription": "Number of hours after which an unused tab is automatically closed."
63+
"markdownDescription": "Number of hours after which an unused tab is automatically archived."
6464
}
6565
}
6666
}
6767
],
6868
"commands": [
6969
{
70-
"command": "autoclosetabs.closeAsManyTabsAsPossible",
71-
"title": "Auto Close Tabs: Close as many tabs as possible"
70+
"command": "tabarchive.archiveAsManyTabsAsPossible",
71+
"title": "Tab Archive: Archive as many tabs as possible"
7272
},
7373
{
74-
"command": "autoclosetabs.activate",
75-
"title": "Auto Close Tabs: Activate automatic closing of unused tabs for this workspace"
74+
"command": "tabarchive.activate",
75+
"title": "Tab Archive: Activate automatic archiving of unused tabs for this workspace"
7676
},
7777
{
78-
"command": "autoclosetabs.deactivate",
79-
"title": "Auto Close Tabs: Deactivate automatic closing of unused tabs for this workspace"
78+
"command": "tabarchive.deactivate",
79+
"title": "Tab Archive: Deactivate automatic archiving of unused tabs for this workspace"
8080
},
8181
{
82-
"command": "autoclosetabs.listAutomaticallyClosedTabs",
83-
"title": "Auto Close Tabs: List automatically closed tabs"
82+
"command": "tabarchive.listArchivedTabs",
83+
"title": "Tab Archive: List recently archived tabs"
8484
}
8585
],
8686
"menus": {
8787
"commandPalette": [
8888
{
89-
"command": "autoclosetabs.activate",
90-
"when": "autoclosetabs.activeInWorkspace === 'no'"
89+
"command": "tabarchive.activate",
90+
"when": "tabarchive.activeInWorkspace === 'no'"
9191
},
9292
{
93-
"command": "autoclosetabs.deactivate",
94-
"when": "autoclosetabs.activeInWorkspace === 'yes'"
93+
"command": "tabarchive.deactivate",
94+
"when": "tabarchive.activeInWorkspace === 'yes'"
9595
}
9696
]
9797
}
@@ -101,6 +101,7 @@
101101
"package": "vsce package",
102102
"vscode:prepublish": "npm run build",
103103
"publish": "vsce publish",
104+
"ovsx-publish": "ovsx publish",
104105
"watch": "tsc -watch -p ./",
105106
"pretest": "npm run build",
106107
"lint": "eslint src --report-unused-disable-directives --max-warnings 0",
@@ -121,6 +122,7 @@
121122
"glob": "^8.1.0",
122123
"mocha": "^10.8.2",
123124
"prettier": "3.0.0",
125+
"ovsx": "^0.10.1",
124126
"typescript": "^5.1.3"
125127
}
126128
}

0 commit comments

Comments
 (0)