@kecan0406/ttheme 1.0.49 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -27
- package/bin/ttheme.js +229 -235
- package/bin/ttheme.js.map +1 -1
- package/dist/manifest.json +94 -5
- package/package.json +2 -1
- package/shell/adapters/_bg.zsh +8 -8
- package/shell/ttheme.zsh +141 -78
package/README.md
CHANGED
|
@@ -80,37 +80,45 @@ a checkout are in [docs/install.md](docs/install.md).
|
|
|
80
80
|
Both images are drawn from the live catalog, so they always match what
|
|
81
81
|
`ttheme browse` offers. `init` installs the series you pick; `ttheme browse`
|
|
82
82
|
adds or drops single palettes any time, and a merged palette reaches everyone
|
|
83
|
-
through `ttheme update` without
|
|
83
|
+
within a day of using ttheme — or at once through `ttheme update` — without
|
|
84
|
+
waiting for a release.
|
|
84
85
|
|
|
85
86
|
### Markets
|
|
86
87
|
|
|
87
88
|
Anyone can publish palettes from a GitHub repository. A market is named
|
|
88
89
|
`<owner>@<name>` — its repository's owner and the name its index gives — and
|
|
89
|
-
sits below the series in `ttheme preview` and `ttheme browse`, past a line
|
|
90
|
+
sits below the series in `ttheme preview` and `ttheme browse`, past a line, with
|
|
91
|
+
the folders under its `palettes/` as catalogs:
|
|
90
92
|
|
|
91
93
|
```
|
|
92
94
|
▾ Evangelion
|
|
93
95
|
rei
|
|
94
96
|
asuka
|
|
95
|
-
──
|
|
97
|
+
── Markets ──────────
|
|
96
98
|
▾ alice@pastel
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
▾ night
|
|
100
|
+
dusk
|
|
101
|
+
moon
|
|
102
|
+
▸ day
|
|
99
103
|
```
|
|
100
104
|
|
|
101
105
|
```sh
|
|
102
|
-
ttheme market
|
|
103
|
-
ttheme market add alice/ttheme-pastel
|
|
104
|
-
ttheme add
|
|
106
|
+
ttheme add dusk --market alice/ttheme-pastel # add alice's market and install from it
|
|
107
|
+
ttheme market add alice/ttheme-pastel#v1 # or add it alone, pinned to a tag
|
|
108
|
+
ttheme browse # tab to Markets: add, remove, auto-update
|
|
105
109
|
```
|
|
106
110
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
`ttheme browse` handles markets the way it handles palettes: its Markets tab
|
|
112
|
+
adds one by repository or folder, finds the public ones on GitHub, marks one for
|
|
113
|
+
removal and switches its auto-update, and enter applies all of it with the
|
|
114
|
+
palettes you picked. The official catalog updates on its own once a day as you
|
|
115
|
+
use ttheme; a repository asks when you add it. Nobody reviews a market. Its
|
|
116
|
+
palettes are colors and post numbers, never code, and the contrast gate's
|
|
117
|
+
numbers are shown for them but never enforced — only the official catalog is
|
|
118
|
+
held to the gate. `ttheme update` refreshes every market now; `ttheme market
|
|
119
|
+
remove alice@pastel` drops one, and the palettes you installed from it keep
|
|
120
|
+
working. The official catalog is a market too (`official`). [The markets
|
|
121
|
+
page](https://kecan0406.github.io/ttheme/market) lists the public ones.
|
|
114
122
|
|
|
115
123
|
### Your own palettes
|
|
116
124
|
|
|
@@ -119,7 +127,8 @@ handle and a market name the first `new` asks for, in
|
|
|
119
127
|
`~/.config/ttheme/market/<market>`, and installs it. `ttheme edit rei` opens it
|
|
120
128
|
in `$EDITOR`; `ttheme check --fix` suggests colors that pass the gate.
|
|
121
129
|
|
|
122
|
-
A local market is already a repository layout: `palettes/*.toml
|
|
130
|
+
A local market is already a repository layout: `palettes/*.toml` (a folder
|
|
131
|
+
under it, such as `palettes/night/`, is a catalog), the
|
|
123
132
|
`ttheme-market.json` index and a workflow that rebuilds the index on every
|
|
124
133
|
push. `ttheme market init <name>` makes one and prints the commands that
|
|
125
134
|
publish it:
|
|
@@ -140,16 +149,16 @@ from the booru the way `find` does.
|
|
|
140
149
|
|
|
141
150
|
| Command | |
|
|
142
151
|
|---|---|
|
|
143
|
-
| `ttheme preview` |
|
|
144
|
-
| `ttheme use <palette>` |
|
|
145
|
-
| `ttheme next` |
|
|
146
|
-
| `ttheme default <palette>` |
|
|
147
|
-
| `ttheme pin` / `unpin` |
|
|
148
|
-
| `ttheme browse` |
|
|
149
|
-
| `ttheme market add <owner/repo>` |
|
|
150
|
-
| `ttheme new <name> --from <palette>` |
|
|
151
|
-
| `ttheme on` / `off` |
|
|
152
|
-
| `ttheme config` |
|
|
152
|
+
| `ttheme preview` | Browse live — the tab repaints as the cursor moves, enter applies it to this tab or makes it the default |
|
|
153
|
+
| `ttheme use <palette>` | Paint this tab (a unique prefix works) |
|
|
154
|
+
| `ttheme next` | Advance this tab to the next palette |
|
|
155
|
+
| `ttheme default <palette>` | The palette new tabs open with |
|
|
156
|
+
| `ttheme pin` / `unpin` | A palette for this directory — `cd` in repaints, `cd` out restores |
|
|
157
|
+
| `ttheme browse` | Pick palettes and markets — tab moves between Catalog, Installed, Markets and Errors |
|
|
158
|
+
| `ttheme market add <owner/repo>` | Add someone's market (`#v1` pins it) — `ttheme market` lists yours; `search`, `remove` too |
|
|
159
|
+
| `ttheme new <name> --from <palette>` | Make a palette of your own; `edit`, `check`, `share` follow |
|
|
160
|
+
| `ttheme on` / `off` | Wear the default again / give the terminal its own colors back |
|
|
161
|
+
| `ttheme config` | Settings in `$EDITOR` |
|
|
153
162
|
|
|
154
163
|
`ttheme help` shows the three to start with and the rest by task; `ttheme help
|
|
155
164
|
all` lists every command. Preview's keys, directory pins, rotating new
|
|
@@ -170,7 +179,7 @@ is what it is: [docs/terminals.md](docs/terminals.md).
|
|
|
170
179
|
## Background pictures
|
|
171
180
|
|
|
172
181
|
A palette can wear a picture behind the text. ttheme ships none: `ttheme
|
|
173
|
-
preview` → tab searches danbooru, konachan
|
|
182
|
+
preview` → tab searches danbooru, konachan, yande.re and zerochan for the character live
|
|
174
183
|
(safe-rated by default), or takes a picture you paste or drop, cuts the
|
|
175
184
|
character out on macOS, tints it to the palette and installs it on your machine
|
|
176
185
|
only. Ghostty shows the focused tab's picture, iTerm2 one per tab, kitty one per
|