Skip to content

Commit

Permalink
config-schema: allow arrays of strings for ui.editor and `ui.diff.t…
Browse files Browse the repository at this point in the history
…ool`

Fixes #5617
  • Loading branch information
steadmon committed Feb 11, 2025
1 parent c187142 commit a80da3a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
expand `~/` to `$HOME/`.
[#5626](https://github.com/jj-vcs/jj/pull/5626)

* `config-schema.json` now allows arrays of strings for the settings `ui.editor`
and `ui.diff.tool`.

## [0.26.0] - 2025-02-05

### Release highlights
Expand Down
26 changes: 23 additions & 3 deletions cli/src/config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,21 @@
"default": "auto"
},
"pager": {
"type": "string",
"type": ["array", "object", "string"],
"items": {
"type": "string"
},
"properties": {
"command": {
"type": ["array", "string"],
"items": {
"type": "string"
}
},
"env": {
"type": "object"
}
},
"description": "Pager to use for displaying command output",
"default": "less -FRX"
},
Expand Down Expand Up @@ -140,7 +154,10 @@
"default": "color-words"
},
"tool": {
"type": "string",
"type": ["array", "string"],
"items": {
"type": "string"
},
"description": "External tool for generating diffs"
}
}
Expand Down Expand Up @@ -177,7 +194,10 @@
"default": true
},
"editor": {
"type": "string",
"type": ["array", "string"],
"items": {
"type": "string"
},
"description": "Editor to use for commands that involve editing text"
},
"diff-editor": {
Expand Down

0 comments on commit a80da3a

Please sign in to comment.