@@ -211,7 +211,8 @@ peas uses `.peas.toml` for configuration (also supports `.peas.yml`, `.peas.yaml
211211[peas ]
212212path = " .peas" # Data directory
213213prefix = " peas-" # ID prefix
214- id_length = 5 # Random ID length
214+ id_length = 5 # ID suffix length
215+ id_mode = " random" # ID mode: "random" (default) or "sequential"
215216default_status = " todo"
216217default_type = " task"
217218frontmatter = " toml" # Frontmatter format: toml, yaml, json (TOML preferred)
@@ -220,6 +221,58 @@ frontmatter = "toml" # Frontmatter format: toml, yaml, json (TOML preferred)
220221use_type_emojis = false # Enable emoji icons for ticket types in TUI
221222```
222223
224+ ### ID Modes
225+
226+ - ** random** (default): Generates IDs like ` peas-a1b2c ` using random alphanumeric characters
227+ - ** sequential** : Generates IDs like ` peas-00001 ` , ` peas-00002 ` , etc. using an incrementing counter stored in ` .peas/.id `
228+
229+ ### Editor Support (JSON Schema)
230+
231+ A JSON Schema is available at ` schemas/peas.json ` for editor autocompletion and validation.
232+
233+ ** In-file directive (works with Taplo and Tombi):**
234+
235+ Add this comment at the top of your ` .peas.toml ` :
236+ ``` toml
237+ # :schema ./schemas/peas.json
238+
239+ [peas ]
240+ prefix = " peas-"
241+ ```
242+
243+ ** Zed with Tombi extension:**
244+
245+ Add to your ` tombi.toml ` (or project settings):
246+ ``` toml
247+ [[schemas ]]
248+ path = " ./schemas/peas.json"
249+ include = [" .peas.toml" ]
250+ ```
251+
252+ ** VS Code with Even Better TOML (Taplo):**
253+
254+ Add to your ` .vscode/settings.json ` :
255+ ``` json
256+ {
257+ "evenBetterToml.schema.associations" : {
258+ ".peas.toml" : " ./schemas/peas.json"
259+ }
260+ }
261+ ```
262+
263+ ** VS Code with YAML extension:**
264+ ``` json
265+ {
266+ "yaml.schemas" : {
267+ "./schemas/peas.json" : [" .peas.yml" , " .peas.yaml" ]
268+ }
269+ }
270+ ```
271+
272+ ** Neovim with taplo/yaml-language-server:**
273+
274+ Configure your LSP to associate the schema with ` .peas.* ` files.
275+
223276## File Format
224277
225278Peas are stored as markdown files with TOML frontmatter (YAML and JSON also supported):
0 commit comments