jj/docs
Bryce Berger cbb743cfb5 config: add --when.command to scope resolution
Closes #5217

Motivating use case:

    [[--scope]]
    --when.command = ["log"]
    [--scope.ui]
    pager = "less"

This adds a new (optional) field to `--when` config conditions, to
inspect the current command.

`--when.commands` is a list of space-separated values that matches a
space-separated command. To be specific:

    --when.command = ["file"]        # matches `jj file show`, `jj file list`, etc
    --when.command = ["file show"]   # matches `jj file show`, but *NOT* `jj file list`
    --when.command = ["file", "log"] # matches `jj file` *OR* `jj log` (or subcommand of either)

When both `--when.commands` and `--when.repositories` are set, the
intersection is used.
2025-01-24 05:30:07 +00:00
..
design docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
governance
technical docs: improve and convert library design diagram to SVG 2025-01-07 20:32:56 -06:00
bookmarks.md docs: Use "branch" consistently when talking about Git's branches 2025-01-03 10:54:00 -06:00
cli-reference.md
code-of-conduct.md
community_tools.md docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
config-schema.json docs: Expose config-schema.json in the docs site 2025-01-14 13:45:36 +00:00
config.md config: add --when.command to scope resolution 2025-01-24 05:30:07 +00:00
config.toml
conflicts.md docs: explain long conflict markers 2024-12-25 20:34:40 -06:00
contributing.md docs/contributing: fix incorrect bookmark name 2025-01-17 12:23:24 +00:00
design_doc_blueprint.md
design_docs.md
FAQ.md restore: add --into flag, make --to an alias to it 2025-01-19 20:17:44 +00:00
filesets.md
git-comparison.md docs: fix typo in in command 2025-01-10 21:21:08 +00:00
git-compatibility.md docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
github.md docs: Git does not use bookmarks 2024-12-19 20:59:45 -08:00
glossary.md
index.md docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
install-and-setup.md docs: fix the mkdocs admonition I recently added 2025-01-10 23:09:01 +00:00
operation-log.md
related-work.md
revsets.md revset: add subject() predicate that matches first line of descriptions 2025-01-21 02:13:04 +00:00
roadmap.md docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
sapling-comparison.md
templates.md templater: add list.filter(predicate) method 2025-01-24 03:42:39 +00:00
testimonials.md
tutorial.md tutorial: fix conflict formatting issue 2024-11-25 16:47:59 -06:00
windows.md ui: switch builtin pager to streampager 2025-01-14 01:13:13 +00:00
working-copy.md docs: fix incorrect XDG env variable 2025-01-15 18:06:02 +00:00