@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 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. `ttheme market add alice`
88
- adds `github.com/alice/ttheme-palettes`, and its palettes join the catalog as
89
- `<palette>@alice`, next to the palette each one varies:
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 # repositories with the ttheme-market topic
93
- ttheme market add alice # or alice/<repo>, or a folder
94
- ttheme add dusk@alice
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 installed
101
- from it keep working. The official catalog is a market too (`official`).
102
- [The markets page](https://kecan0406.github.io/ttheme/markets) lists the public ones.
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 dusk --from madoka` makes `dusk@<you>`, named after your GitHub
107
- handle, in your local market at `~/.config/ttheme/market` (the first `new`
108
- creates it) and installs it. `ttheme edit` opens it in `$EDITOR`; `ttheme check
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
- The local market is already a repository layout: `palettes/*.toml`, the
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. Publishing it is two commands, which `ttheme market init` prints:
124
+ push. `ttheme market init <name>` makes one and prints the commands that
125
+ publish it:
114
126
 
115
127
  ```sh
116
- gh repo create <you>/ttheme-palettes --public --source ~/.config/ttheme/market --push
117
- gh repo edit <you>/ttheme-palettes --add-topic ttheme-market
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` |