@kecan0406/ttheme 1.0.44 → 1.0.45
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 +32 -18
- package/bin/ttheme.js +169 -167
- package/bin/ttheme.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/package.json +1 -1
- package/shell/adapters/_bg.zsh +6 -6
- package/shell/adapters/ghostty.zsh +2 -2
- package/shell/adapters/iterm2.zsh +1 -1
- package/shell/ttheme.zsh +15 -3
package/README.md
CHANGED
|
@@ -84,37 +84,51 @@ through `ttheme update` without waiting for a release.
|
|
|
84
84
|
|
|
85
85
|
### Markets
|
|
86
86
|
|
|
87
|
-
Anyone can publish palettes from a GitHub repository.
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
Anyone can publish palettes from a GitHub repository. A market is named
|
|
88
|
+
`<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
|
+
|
|
91
|
+
```
|
|
92
|
+
▾ Evangelion
|
|
93
|
+
rei
|
|
94
|
+
asuka
|
|
95
|
+
── markets ──────────
|
|
96
|
+
▾ alice@pastel
|
|
97
|
+
dusk
|
|
98
|
+
rei
|
|
99
|
+
```
|
|
90
100
|
|
|
91
101
|
```sh
|
|
92
|
-
ttheme market search
|
|
93
|
-
ttheme market add alice
|
|
94
|
-
ttheme add dusk
|
|
102
|
+
ttheme market search # repositories with the ttheme-market topic
|
|
103
|
+
ttheme market add alice/ttheme-pastel # or a folder
|
|
104
|
+
ttheme add alice@pastel/dusk
|
|
95
105
|
```
|
|
96
106
|
|
|
97
107
|
Nobody reviews a market. Its palettes are colors and post numbers, never code,
|
|
98
108
|
and the contrast gate's numbers are shown for them but never enforced — only
|
|
99
109
|
the official catalog is held to the gate. `ttheme update` refreshes every
|
|
100
|
-
market; `ttheme market remove alice` drops one, and the palettes you
|
|
101
|
-
from it keep working. The official catalog is a market too
|
|
102
|
-
[The markets page](https://kecan0406.github.io/ttheme/markets)
|
|
110
|
+
market; `ttheme market remove alice@pastel` drops one, and the palettes you
|
|
111
|
+
installed from it keep working. The official catalog is a market too
|
|
112
|
+
(`official`). [The markets page](https://kecan0406.github.io/ttheme/markets)
|
|
113
|
+
lists the public ones.
|
|
103
114
|
|
|
104
115
|
### Your own palettes
|
|
105
116
|
|
|
106
|
-
`ttheme new
|
|
107
|
-
handle
|
|
108
|
-
|
|
109
|
-
--fix` suggests colors that pass the gate.
|
|
117
|
+
`ttheme new rei --from rei` makes `<you>@<market>/rei`, named after your GitHub
|
|
118
|
+
handle and a market name the first `new` asks for, in
|
|
119
|
+
`~/.config/ttheme/market/<market>`, and installs it. `ttheme edit rei` opens it
|
|
120
|
+
in `$EDITOR`; `ttheme check --fix` suggests colors that pass the gate.
|
|
110
121
|
|
|
111
|
-
|
|
122
|
+
A local market is already a repository layout: `palettes/*.toml`, the
|
|
112
123
|
`ttheme-market.json` index and a workflow that rebuilds the index on every
|
|
113
|
-
push.
|
|
124
|
+
push. `ttheme market init <name>` makes one and prints the commands that
|
|
125
|
+
publish it:
|
|
114
126
|
|
|
115
127
|
```sh
|
|
116
|
-
|
|
117
|
-
|
|
128
|
+
cd ~/.config/ttheme/market/<name>
|
|
129
|
+
git init -b main && git add -A && git commit -m "<you>@<name>"
|
|
130
|
+
gh repo create <you>/ttheme-<name> --public --source . --push
|
|
131
|
+
gh repo edit <you>/ttheme-<name> --add-topic ttheme-market
|
|
118
132
|
```
|
|
119
133
|
|
|
120
134
|
`ttheme share <palette>` prints a code — `tt1:…`, about 200 characters — that
|
|
@@ -132,7 +146,7 @@ from the booru the way `find` does.
|
|
|
132
146
|
| `ttheme default <palette>` | the palette new tabs open with |
|
|
133
147
|
| `ttheme pin` / `unpin` | a palette for this directory — `cd` in repaints, `cd` out restores |
|
|
134
148
|
| `ttheme browse` | pick palettes from the catalog |
|
|
135
|
-
| `ttheme market add <owner>` | add someone's market — `ttheme market` lists yours; `search`, `remove` too |
|
|
149
|
+
| `ttheme market add <owner/repo>` | add someone's market — `ttheme market` lists yours; `search`, `remove` too |
|
|
136
150
|
| `ttheme new <name> --from <palette>` | make a palette of your own; `edit`, `check`, `share` follow |
|
|
137
151
|
| `ttheme on` / `off` | wear the default again / give the terminal its own colors back |
|
|
138
152
|
| `ttheme config` | settings in `$EDITOR` |
|