Global Options
Global Options answer the question “Which repository/context?” They configure jj’s own environment rather than the command being run, and must precede the command on the shell (e.g., jj --repository ../other log).
The Global Options Modal
Section titled “The Global Options Modal”Because these options are distinct from command-specific flags, they live in an isolated modal:
- Press
gto open the Global Options Modal — available from the composer, Output, Docs, or Command Bar (including enlarged Output/Docs views), but not while focused in the Inputs Pane. - The modal splits into a Checklist on the left and Option Docs on the right.
- Use
h/l(or←/→) to move between checklist selection and scrolling the option’s detailed help. - Press
Spaceto select global options. - Press
Escorgagain to close the modal and return to your previous composer state. Note:qquits Jutsu entirely from inside the modal, the same as it does elsewhere — it does not just close the modal.
Global Options That Require Values
Section titled “Global Options That Require Values”If a global option requires a value (e.g., --config), you do not type it inside the modal. Instead:
- Toggle the option with
Spaceand close the modal (Escorg). - Closing the modal returns focus to your last composer pane — it does not automatically jump into the Inputs Pane, and
gcannot be used to reopen the modal while inputs are focused. - Press
iyourself to enter the Inputs Pane (available from any non-Inputs, non-enlarged view), where a new input field for the option has been dynamically created alongside the command’s normal inputs. This keeps all text values visible at once.
Pinned Indicators and Command Splicing
Section titled “Pinned Indicators and Command Splicing”Once a global option is selected, Jutsu provides clear visual indicators to remind you that your environment is modified:
- Teal Pinned Rows (
◆): Active global options are pinned directly to the top of the standard Flags Pane with a teal◆prefix, staying visible even if you scroll down a long list of command flags. - Spliced Command String: The Command Bar automatically splices active global options before the subcommand, matching
jj’s precise command-line interface —jj --repository ../my-repo loginstead ofjj log --repository ../my-repo.
Related Topics
Section titled “Related Topics”- Inputs — where global option values are typed.
- Flags — command-specific flags, as distinct from global options.
- Inputs and Global Options — a scenario demonstrating targeting another repository with a global option.