@kecan0406/ttheme 1.2.15 → 1.2.17
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 +15 -14
- package/bin/ttheme.js +206 -201
- package/bin/ttheme.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/package.json +3 -2
- package/shell/adapters/_osc.zsh +2 -0
- package/shell/adapters/terminal-app.zsh +5 -0
- package/shell/preview.zsh +140 -63
- package/shell/ttheme.zsh +12 -6
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
</p>
|
|
19
19
|
|
|
20
20
|
<p align="center">
|
|
21
|
-
<img src="docs/demo.gif" alt="ttheme
|
|
21
|
+
<img src="docs/demo.gif" alt="ttheme: typing nichi filters to the Nichijou palettes, each one repaints the tab as the cursor lands on it, then rei is picked and applied" width="860">
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
24
|
## Why ttheme
|
|
@@ -78,8 +78,8 @@ a checkout are in [docs/install.md](docs/install.md).
|
|
|
78
78
|
</details>
|
|
79
79
|
|
|
80
80
|
Both images are drawn from the live catalog, so they always match what
|
|
81
|
-
|
|
82
|
-
adds or drops single palettes any time, and a merged palette reaches everyone
|
|
81
|
+
Browse offers. `init` installs the series you pick; Browse, the second tab of
|
|
82
|
+
`ttheme`, adds or drops single palettes any time, and a merged palette reaches everyone
|
|
83
83
|
with the next release — `ttheme update` brings it, and ttheme says when one is
|
|
84
84
|
out.
|
|
85
85
|
|
|
@@ -87,7 +87,7 @@ out.
|
|
|
87
87
|
|
|
88
88
|
Anyone can publish palettes from a GitHub repository. A market is named
|
|
89
89
|
`<owner>@<name>` — its repository's owner and the name its `ttheme-market.toml` gives — and
|
|
90
|
-
sits below the series in
|
|
90
|
+
sits below the series in Preview and Browse, past a line, with
|
|
91
91
|
the folders under its `palettes/` as catalogs:
|
|
92
92
|
|
|
93
93
|
```
|
|
@@ -105,16 +105,16 @@ the folders under its `palettes/` as catalogs:
|
|
|
105
105
|
```sh
|
|
106
106
|
ttheme add dusk --market alice/ttheme-pastel # add alice's market and install from it
|
|
107
107
|
ttheme market add alice/ttheme-pastel#v1 # or add it alone, pinned to a tag
|
|
108
|
-
ttheme
|
|
108
|
+
ttheme # shift+tab to Browse, shift+→ to Markets: add, remove, auto-update
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
Browse handles markets the way it handles palettes: its Markets tab
|
|
112
112
|
adds one by repository or folder, finds the public ones on GitHub, marks one for
|
|
113
113
|
removal and switches its auto-update, and enter applies all of it with the
|
|
114
114
|
palettes you picked. The official catalog comes with ttheme and updates with it;
|
|
115
115
|
a repository asks when you add it whether its list updates on its own, and a
|
|
116
116
|
palette you installed from it keeps its colors until you take its update —
|
|
117
|
-
`ctrl+r` on a palette marked `↑` in
|
|
117
|
+
`ctrl+r` on a palette marked `↑` in Browse's Installed tab. Nobody reviews a market. Its
|
|
118
118
|
palettes are colors and post numbers, never code, and the contrast gate's
|
|
119
119
|
numbers are shown for them but never enforced — only the official catalog is
|
|
120
120
|
held to the gate. `ttheme update` updates ttheme and refreshes every market now; `ttheme market
|
|
@@ -145,22 +145,23 @@ gh repo create <you>/ttheme-<name> --public --source . --push
|
|
|
145
145
|
gh repo edit <you>/ttheme-<name> --add-topic ttheme-market
|
|
146
146
|
```
|
|
147
147
|
|
|
148
|
-
`ttheme share <palette>` prints a
|
|
149
|
-
carries the colors and the numbers of
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
`ttheme share <palette>` prints a link — `https://ttheme.vercel.app/p/tt2:…` —
|
|
149
|
+
and, in a terminal, its QR code. The link carries the colors and the numbers of
|
|
150
|
+
its background posts with their framing, so nothing is uploaded: the page it
|
|
151
|
+
opens draws the palette in a terminal, lists the posts, and gives the
|
|
152
|
+
`ttheme add` command, and its preview image for chat apps is drawn in the palette's colors.
|
|
153
|
+
`ttheme add <link>` (or the bare `tt2:…` code at its end) installs it anywhere
|
|
154
|
+
without a market, fetching those posts from the booru the way `find` does.
|
|
152
155
|
|
|
153
156
|
## Usage
|
|
154
157
|
|
|
155
158
|
| Command | |
|
|
156
159
|
|---|---|
|
|
157
|
-
| `ttheme` | Preview and
|
|
158
|
-
| `ttheme preview` | Browse live — the tab repaints as the cursor moves, enter applies it to this tab or makes it the default |
|
|
160
|
+
| `ttheme` | Preview and Browse as tabs of one screen — `tab` and `shift+tab` switch. Preview tries palettes live: the tab repaints as the cursor moves, enter applies it to this tab or makes it the default. Browse picks palettes and markets: `shift+←/→` moves between Catalog, Installed, Markets and Errors |
|
|
159
161
|
| `ttheme use <palette>` | Paint this tab (a unique prefix works) |
|
|
160
162
|
| `ttheme default <palette>` | The palette new tabs open with |
|
|
161
163
|
| `ttheme pin` / `unpin` | A palette for this directory, everything below it, its repository or an ssh host (`ssh:<host>`) — a panel shows what each choice reaches; `cd` or `ssh` in repaints, leaving restores |
|
|
162
164
|
| `ttheme pins` | Map every pinned directory as a tree, in each palette's colors, with where you are marked, and every pinned ssh host |
|
|
163
|
-
| `ttheme browse` | Pick palettes and markets — `shift+←/→` moves between Catalog, Installed, Markets and Errors |
|
|
164
165
|
| `ttheme market add <owner/repo>` | Add someone's market (`#v1` pins it) — `ttheme market` lists yours; `search`, `remove` too |
|
|
165
166
|
| `ttheme new <name>` | Make a palette of your own in the palette editor (`--from <palette>` starts from its colors); `edit`, `check`, `share` follow |
|
|
166
167
|
| `ttheme on` / `off` | Wear the default again / give the terminal its own colors back |
|