summaryrefslogtreecommitdiffstats
path: root/schema
diff options
context:
space:
mode:
Diffstat (limited to 'schema')
-rw-r--r--schema/config.json683
1 files changed, 377 insertions, 306 deletions
diff --git a/schema/config.json b/schema/config.json
index 5d259cbd4..271fd8be6 100644
--- a/schema/config.json
+++ b/schema/config.json
@@ -46,19 +46,23 @@
},
"skipDiscardChangeWarning": {
"type": "boolean",
- "description": "If true, do not show a warning when discarding changes in the staging view."
+ "description": "If true, do not show a warning when discarding changes in the staging view.",
+ "default": false
},
"skipStashWarning": {
"type": "boolean",
- "description": "If true, do not show warning when applying/popping the stash"
+ "description": "If true, do not show warning when applying/popping the stash",
+ "default": false
},
"skipNoStagedFilesWarning": {
"type": "boolean",
- "description": "If true, do not show a warning when attempting to commit without any staged files; instead stage all unstaged files."
+ "description": "If true, do not show a warning when attempting to commit without any staged files; instead stage all unstaged files.",
+ "default": false
},
"skipRewordInEditorWarning": {
"type": "boolean",
- "description": "If true, do not show a warning when rewording a commit via an external editor"
+ "description": "If true, do not show a warning when rewording a commit via an external editor",
+ "default": false
},
"sidePanelWidth": {
"type": "number",
@@ -69,7 +73,13 @@
},
"expandFocusedSidePanel": {
"type": "boolean",
- "description": "If true, increase the height of the focused side window; creating an accordion effect."
+ "description": "If true, increase the height of the focused side window; creating an accordion effect.",
+ "default": false
+ },
+ "expandedSidePanelWeight": {
+ "type": "integer",
+ "description": "The weight of the expanded side panel, relative to the other panels. 2 means\ntwice as tall as the other panels. Only relevant if `expandFocusedSidePanel` is true.",
+ "default": 2
},
"mainPanelSplitMode": {
"type": "string",
@@ -293,7 +303,8 @@
},
"showIcons": {
"type": "boolean",
- "description": "Deprecated: use nerdFontsVersion instead"
+ "description": "Deprecated: use nerdFontsVersion instead",
+ "default": false
},
"nerdFontsVersion": {
"type": "string",
@@ -309,9 +320,36 @@
"description": "If true (default), file icons are shown in the file views. Only relevant if NerdFontsVersion is not empty.",
"default": true
},
+ "commitAuthorFormat": {
+ "type": "string",
+ "enum": [
+ "auto",
+ "short",
+ "full"
+ ],
+ "description": "Whether to show full author names or their shortened form in the commit graph.\nOne of 'auto' (default) | 'full' | 'short'\nIf 'auto', initials will be shown in small windows, and full names - in larger ones.",
+ "default": "auto"
+ },
+ "commitHashLength": {
+ "type": "integer",
+ "minimum": 0,
+ "description": "Length of commit hash in commits view. 0 shows '*' if NF icons aren't on.",
+ "default": 8
+ },
"showBranchCommitHash": {
"type": "boolean",
- "description": "If true, show commit hashes alongside branch names in the branches view."
+ "description": "If true, show commit hashes alongside branch names in the branches view.",
+ "default": false
+ },
+ "showDivergenceFromBaseBranch": {
+ "type": "string",
+ "enum": [
+ "none",
+ "onlyArrow",
+ "arrowAndNumber"
+ ],
+ "description": "Whether to show the divergence from the base branch in the branches view.\nOne of: 'none' | 'onlyArrow' | 'arrowAndNumber'",
+ "default": "none"
},
"commandLogSize": {
"type": "integer",
@@ -335,7 +373,8 @@
"half",
"full"
],
- "description": "Default size for focused window. Window size can be changed from within Lazygit with '+' and '_' (but this won't change the default).\nOne of: 'normal' (default) | 'half' | 'full'"
+ "description": "Default size for focused window. Window size can be changed from within Lazygit with '+' and '_' (but this won't change the default).\nOne of: 'normal' (default) | 'half' | 'full'",
+ "default": "normal"
},
"border": {
"type": "string",
@@ -422,7 +461,6 @@
},
"pager": {
"type": "string",
- "minLength": 1,
"description": "e.g.\ndiff-so-fancy\ndelta --dark --paging=never\nydiff -p cat -s --wrap --width={{columnWidth}}",
"default": "",
"examples": [
@@ -433,7 +471,8 @@
},
"useConfig": {
"type": "boolean",
- "description": "If true, Lazygit will use whatever pager is specified in `$GIT_PAGER`, `$PAGER`, or your *git config*. If the pager ends with something like ` | less` we will strip that part out, because less doesn't play nice with our rendering approach. If the custom pager uses less under the hood, that will also break rendering (hence the `--paging=never` flag for the `delta` pager)."
+ "description": "If true, Lazygit will use whatever pager is specified in `$GIT_PAGER`, `$PAGER`, or your *git config*. If the pager ends with something like ` | less` we will strip that part out, because less doesn't play nice with our rendering approach. If the custom pager uses less under the hood, that will also break rendering (hence the `--paging=never` flag for the `delta` pager).",
+ "default": false
},
"externalDiffCommand": {
"type": "string",
@@ -448,7 +487,8 @@
"properties": {
"signOff": {
"type": "boolean",
- "description": "If true, pass '--signoff' flag when committing"
+ "description": "If true, pass '--signoff' flag when committing",
+ "default": false
},
"autoWrapCommitMessage": {
"type": "boolean",
@@ -469,7 +509,8 @@
"properties": {
"manualCommit": {
"type": "boolean",
- "description": "If true, run merges in a subprocess so that if a commit message is required, Lazygit will not hang\nOnly applicable to unix users."
+ "description": "If true, run merges in a subprocess so that if a commit message is required, Lazygit will not hang\nOnly applicable to unix users.",
+ "default": false
},
"args": {
"type": "string",
@@ -527,18 +568,40 @@
},
"overrideGpg": {
"type": "boolean",
- "description": "If true, do not spawn a separate process when using GPG"
+ "description": "If true, do not spawn a separate process when using GPG",
+ "default": false
},
"disableForcePushing": {
"type": "boolean",
- "description": "If true, do not allow force pushes"
+ "description": "If true, do not allow force pushes",
+ "default": false
+ },
+ "commitPrefix": {
+ "properties": {
+ "pattern": {
+ "type": "string",
+ "description": "pattern to match on. E.g. for 'feature/AB-123' to match on the AB-123 use \"^\\\\w+\\\\/(\\\\w+-\\\\w+).*\"",
+ "examples": [
+ "^\\w+\\/(\\w+-\\w+).*"
+ ]
+ },
+ "replace": {
+ "type": "string",
+ "description": "Replace directive. E.g. for 'feature/AB-123' to start the commit message with 'AB-123 ' use \"[$1] \"",
+ "examples": [
+ "[$1]"
+ ]
+ }
+ },
+ "additionalProperties": false,
+ "type": "object",
+ "description": "See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#predefined-commit-message-prefix"
},
"commitPrefixes": {
"additionalProperties": {
"properties": {
"pattern": {
"type": "string",
- "minLength": 1,
"description": "pattern to match on. E.g. for 'feature/AB-123' to match on the AB-123 use \"^\\\\w+\\\\/(\\\\w+-\\\\w+).*\"",
"examples": [
"^\\w+\\/(\\w+-\\w+).*"
@@ -546,10 +609,9 @@
},
"replace": {
"type": "string",
- "minLength": 1,
"description": "Replace directive. E.g. for 'feature/AB-123' to start the commit message with 'AB-123 ' use \"[$1] \"",
"examples": [
- "[$1] "
+ "[$1]"
]
}
},
@@ -561,7 +623,8 @@
},
"parseEmoji": {
"type": "boolean",
- "description": "If true, parse emoji strings in commit messages e.g. render :rocket: as 🚀\n(This should really be under 'gui', not 'git')"
+ "description": "If true, parse emoji strings in commit messages e.g. render :rocket: as 🚀\n(This should really be under 'gui', not 'git')",
+ "default": false
},
"log": {
"properties": {
@@ -588,7 +651,8 @@
},
"showWholeGraph": {
"type": "boolean",
- "description": "displays the whole git graph by default in the commits view (equivalent to passing the `--all` argument to `git log`)"
+ "description": "displays the whole git graph by default in the commits view (equivalent to passing the `--all` argument to `git log`)",
+ "default": false
}
},
"additionalProperties": false,
@@ -649,11 +713,303 @@
},
"confirmOnQuit": {
"type": "boolean",
- "description": "If true, show a confirmation popup before quitting Lazygit"
+ "description": "If true, show a confirmation popup before quitting Lazygit",
+ "default": false
},
"quitOnTopLevelReturn": {
"type": "boolean",
- "description": "If true, exit Lazygit when the user presses escape in a context where there is nothing to cancel/close"
+ "description": "If true, exit Lazygit when the user presses escape in a context where there is nothing to cancel/close",
+ "default": false
+ },
+ "os": {
+ "properties": {
+ "edit": {
+ "type": "string",
+ "description": "Command for editing a file. Should contain \"{{filename}}\"."
+ },
+ "editAtLine": {
+ "type": "string",
+ "description": "Command for editing a file at a given line number. Should contain\n\"{{filename}}\", and may optionally contain \"{{line}}\"."
+ },
+ "editAtLineAndWait": {
+ "type": "string",
+ "description": "Same as EditAtLine, except that the command needs to wait until the\nwindow is closed."
+ },
+ "editInTerminal": {
+ "type": "boolean",
+ "description": "Whether lazygit suspends until an edit process returns\nPointer to bool so that we can distinguish unset (nil) from false.\nWe're naming this `editInTerminal` for backwards compatibility"
+ },
+ "openDirInEditor": {
+ "type": "string",
+ "description": "For opening a directory in an editor"
+ },
+ "editPreset": {
+ "type": "string",
+ "description": "A built-in preset that sets all of the above settings. Supported presets\nare defined in the getPreset function in editor_presets.go.",
+ "examples": [
+ "vim",
+ "nvim",
+ "emacs",
+ "nano",
+ "vscode",
+ "sublime",
+ "kakoune",
+ "helix",
+ "xcode"
+ ]
+ },
+ "open": {
+ "type": "string",
+ "description": "Command for opening a file, as if the file is double-clicked. Should\ncontain \"{{filename}}\", but doesn't support \"{{line}}\"."
+ },
+ "openLink": {
+ "type": "string",
+ "description": "Command for opening a link. Should contain \"{{link}}\"."
+ },
+ "editCommand": {
+ "type": "string",
+ "description": "EditCommand is the command for editing a file.\nDeprecated: use Edit instead. Note that semantics are different:\nEditCommand is just the command itself, whereas Edit contains a\n\"{{filename}}\" variable."
+ },
+ "editCommandTemplate": {
+ "type": "string",
+ "description": "EditCommandTemplate is the command template for editing a file\nDeprecated: use EditAtLine instead."
+ },
+ "openCommand": {
+ "type": "string",
+ "description": "OpenCommand is the command for opening a file\nDeprecated: use Open instead."
+ },
+ "openLinkCommand": {
+ "type": "string",
+ "description": "OpenLinkCommand is the command for opening a link\nDeprecated: use OpenLink instead."
+ },
+ "copyToClipboardCmd": {
+ "type": "string",
+ "description": "CopyToClipboardCmd is the command for copying to clipboard.\nSee https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-command-for-copying-to-clipboard"
+ }
+ },
+ "additionalProperties": false,
+ "type": "object",
+ "description": "Config relating to things outside of Lazygit like how files are opened, copying to clipboard, etc"
+ },
+ "disableStartupPopups": {
+ "type": "boolean",
+ "description": "If true, don't display introductory popups upon opening Lazygit.",
+ "default": false
+ },
+ "customCommands": {
+ "items": {
+ "properties": {
+ "key": {
+ "type": "string",
+ "description": "The key to trigger the command. Use a single letter or one of the values from https://github.com/jesseduffield/lazygit/blob/master/docs/keybindings/Custom_Keybindings.md"
+ },
+ "context": {
+ "type": "string",
+ "enum": [
+ "status",
+ "files",
+ "worktrees",
+ "localBranches",
+ "remotes",
+ "remoteBranches",
+ "tags",
+ "commits",
+ "reflogCommits",
+ "subCommits",
+ "commitFiles",
+ "stash",
+ "global"
+ ],
+ "description": "The context in which to listen for the key"
+ },
+ "command": {
+ "type": "string",
+ "description": "The command to run (using Go template syntax for placeholder values)",
+ "examples": [
+ "git fetch {{.Form.Remote}} {{.Form.Branch}} \u0026\u0026 git checkout FETCH_HEAD"
+ ]
+ },
+ "subprocess": {
+ "type": "boolean",
+ "description": "If true, run the command in a subprocess (e.g. if the command requires user input)"
+ },
+ "prompts": {
+ "items": {
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "One of: 'input' | 'menu' | 'confirm' | 'menuFromCommand'"
+ },
+ "key": {
+ "type": "string",
+ "description": "Used to reference the entered value from within the custom command. E.g. a prompt with `key: 'Branch'` can be referred to as `{{.Form.Branch}}` in the command"
+ },
+ "title": {
+ "type": "string",
+ "description": "The title to display in the popup panel"
+ },
+ "initialValue": {
+ "type": "string",
+ "description": "The initial value to appear in the text box.\nOnly for input prompts."
+ },
+ "suggestions": {
+ "properties": {
+ "preset": {
+ "type": "string",
+ "enum": [
+ "authors",
+ "branches",
+ "files",
+ "refs",
+ "remotes",
+ "remoteBranches",
+ "tags"
+ ],
+ "description": "Uses built-in logic to obtain the suggestions. One of 'authors' | 'branches' | 'files' | 'refs' | 'remotes' | 'remoteBranches' | 'tags'"
+ },
+ "command": {
+ "type": "string",
+ "description": "Command to run such that each line in the output becomes a suggestion. Mutually exclusive with 'preset' field.",
+ "examples": [
+ "git fetch {{.Form.Remote}} {{.Form.Branch}} \u0026\u0026 git checkout FETCH_HEAD"
+ ]
+ }
+ },
+ "additionalProperties": false,
+ "type": "object",
+ "description": "Shows suggestions as the input is entered\nOnly for input prompts."
+ },
+ "body": {
+ "type": "string",
+ "description": "The message of the confirmation prompt.\nOnly for confirm prompts.",
+ "examples": [
+ "Are you sure you want to push to the remote?"
+ ]
+ },
+ "options": {
+ "items": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The first part of the label"
+ },
+ "description": {
+ "type": "string",
+ "description": "The second part of the label"
+ },
+ "value": {
+ "type": "string",
+ "minLength": 1,
+ "description": "The value that will be used in the command",
+ "examples": [
+ "feature"
+ ]
+ }
+ },
+ "additionalProperties": false,
+ "type": "object"
+ },
+ "type": "array",
+ "description": "Menu options.\nOnly for menu prompts."
+ },
+ "command": {
+ "type": "string",
+ "description": "The command to run to generate menu options\nOnly for menuFromCommand prompts.",
+ "examples": [
+ "git fetch {{.Form.Remote}} {{.Form.Branch}} \u0026\u0026 git checkout FETCH_HEAD"
+ ]
+ },
+ "filter": {
+ "type": "string",
+ "description": "The regexp to run specifying groups which are going to be kept from the command's output.\nOnly for menuFromCommand prompts.",
+ "examples": [
+ ".*{{.SelectedRemote.Name }}/(?P\u003cbranch\u003e.*)"
+ ]
+ },
+ "valueFormat": {
+ "type": "string",
+ "description": "How to format matched groups from the filter to construct a menu item's value.\nOnly for menuFromCommand prompts.",
+ "examples": [
+ "{{ .branch }}"
+ ]
+ },
+ "labelFormat": {
+ "type": "string",
+ "description": "Like valueFormat but for the labels. If `labelFormat` is not specified, `valueFormat` is shown instead.\nOnly for menuFromCommand prompts.",
+ "examples": [
+ "{{ .branch | green }}"
+ ]
+ }
+ },
+ "additionalProperties": false,
+ "type": "object"
+ },
+ "type": "array",
+ "description": "A list of prompts that will request user input before running the final command"
+ },
+ "loadingText": {
+ "type": "string",
+ "description": "Text to display while waiting for command to finish",
+ "examples": [
+ "Loading..."
+ ]
+ },
+ "description": {
+ "type": "string",
+ "description": "Label for the custom command when displayed in the keybindings menu"
+ },
+ "stream": {
+ "type": "boolean",
+ "description": "If true, stream the command's output to the Command Log panel"
+ },
+ "showOutput": {
+ "type": "boolean",
+ "description": "If true, show the command's output in a popup within Lazygit"
+ },
+ "outputTitle": {
+ "type": "string",
+ "description": "The title to display in the popup panel if showOutput is true. If left unset, the command will be used as the title."
+ },
+ "after": {
+ "properties": {
+ "checkForConflicts": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "type": "object",
+ "description": "Actions to take after the command has completed"
+ }
+ },
+ "additionalProperties": false,
+ "type": "object"
+ },
+ "type": "array",
+ "uniqueItems": true,
+ "description": "User-configured commands that can be invoked from within Lazygit"
+ },
+ "services": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "type": "object",
+ "description": "See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-pull-request-urls"
+ },
+ "notARepository": {
+ "type": "string",
+ "enum": [
+ "prompt",
+ "create",
+ "skip",
+ "quit"
+ ],
+ "description": "What to do when opening Lazygit outside of a git repo.\n- 'prompt': (default) ask whether to initialize a new repo or open in the most recent repo\n- 'create': initialize a new repo\n- 'skip': open most recent repo\n- 'quit': exit Lazygit",
+ "default": "prompt"
+ },
+ "promptToReturnFromSubprocess": {
+ "type": "boolean",
+ "description": "If true, display a confirmation when subprocess terminates. This allows you to view the output of the subprocess before returning to Lazygit.",
+ "default": true
},
"keybinding": {
"properties": {
@@ -1304,291 +1660,6 @@
"additionalProperties": false,
"type": "object",
"description": "Keybindings"
- },
- "os": {
- "properties": {
- "edit": {
- "type": "string",
- "description": "Command for editing a file. Should contain \"{{filename}}\"."
- },
- "editAtLine": {
- "type": "string",
- "description": "Command for editing a file at a given line number. Should contain\n\"{{filename}}\", and may optionally contain \"{{line}}\"."
- },
- "editAtLineAndWait": {
- "type": "string",
- "description": "Same as EditAtLine, except that the command needs to wait until the\nwindow is closed."
- },
- "editInTerminal": {
- "type": "boolean",
- "description": "Whether lazygit suspends until an edit process returns\nPointer to bool so that we can distinguish unset (nil) from false.\nWe're naming this `editInTerminal` for backwards compatibility"
- },
- "openDirInEditor": {
- "type": "string",
- "description": "For opening a directory in an editor"
- },
- "editPreset": {
- "type": "string",
- "description": "A built-in preset that sets all of the above settings. Supported presets\nare defined in the getPreset function in editor_presets.go.",
- "examples": [
- "vim",
- "nvim",
- "emacs",
- "nano",
- "vscode",
- "sublime",
- "kakoune",
- "helix",
- "xcode"
- ]
- },
- "open": {
- "type": "string",
- "description": "Command for opening a file, as if the file is double-clicked. Should\ncontain \"{{filename}}\", but doesn't support \"{{line}}\"."
- },
- "openLink": {
- "type": "string",
- "description": "Command for opening a link. Should contain \"{{link}}\"."
- },
- "editCommand": {
- "type": "string",
- "description": "EditCommand is the command for editing a file.\nDeprecated: use Edit instead. Note that semantics are different:\nEditCommand is just the command itself, whereas Edit contains a\n\"{{filename}}\" variable."
- },
- "editCommandTemplate": {
- "type": "string",
- "description": "EditCommandTemplate is the command template for editing a file\nDeprecated: use EditAtLine instead."
- },
- "openCommand": {
- "type": "string",
- "description": "OpenCommand is the command for opening a file\nDeprecated: use Open instead."
- },
- "openLinkCommand": {
- "type": "string",
- "description": "OpenLinkCommand is the command for opening a link\nDeprecated: use OpenLink instead."
- },
- "copyToClipboardCmd": {
- "type": "string",
- "description": "CopyToClipboardCmd is the command for copying to clipboard.\nSee https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-command-for-copying-to-clipboard"
- }
- },
- "additionalProperties": false,
- "type": "object",
- "description": "Config relating to things outside of Lazygit like how files are opened, copying to clipboard, etc"
- },
- "disableStartupPopups": {
- "type": "boolean",
- "description": "If true, don't display introductory popups upon opening Lazygit.\nLazygit sets this to true upon first runninng the program so that you don't see introductory popups every time you open the program."
- },
- "customCommands": {
- "items": {
- "properties": {
- "key": {
- "type": "string",
- "description": "The key to trigger the command. Use a single letter or one of the values from https://github.com/jesseduffield/lazygit/blob/master/docs/keybindings/Custom_Keybindings.md"
- },
- "context": {
- "type": "string",
- "enum": [
- "status",
- "files",
- "worktrees",
- "localBranches",
- "remotes",
- "remoteBranches",
- "tags",
- "commits",
- "reflogCommits",
- "subCommits",
- "commitFiles",
- "stash",
- "global"
- ],
- "description": "The context in which to listen for the key"
- },
- "command": {
- "type": "string",
- "description": "The command to run (using Go template syntax for placeholder values)",
- "examples": [
- "git fetch {{.Form.Remote}} {{.Form.Branch}} \u0026\u0026 git checkout FETCH_HEAD"
- ]
- },
- "subprocess": {
- "type": "boolean",
- "description": "If true, run the command in a subprocess (e.g. if the command requires user input)"
- },
- "prompts": {
- "items": {
- "properties": {
- "type": {
- "type": "string",
- "description": "One of: 'input' | 'menu' | 'confirm' | 'menuFromCommand'"
- },
- "key": {
- "type": "string",
- "description": "Used to reference the entered value from within the custom command. E.g. a prompt with `key: 'Branch'` can be referred to as `{{.Form.Branch}}` in the command"
- },
- "title": {
- "type": "string",
- "description": "The title to display in the popup panel"
- },
- "initialValue": {
- "type": "string",
- "description": "The initial value to appear in the text box.\nOnly for input prompts."
- },
- "suggestions": {
- "properties": {
- "preset": {
- "type": "string",
- "enum": [
- "authors",
- "branches",
- "files",
- "refs",
- "remotes",
- "remoteBranches",
- "tags"
- ],
- "description": "Uses built-in logic to obtain the suggestions. One of 'authors' | 'branches' | 'files' | 'refs' | 'remotes' | 'remoteBranches' | 'tags'"
- },
- "command": {
- "type": "string",
- "description": "Command to run such that each line in the output becomes a suggestion. Mutually exclusive with 'preset' field.",
- "examples": [
- "git fetch {{.Form.Remote}} {{.Form.Branch}} \u0026\u0026 git checkout FETCH_HEAD"
- ]
- }
- },
- "additionalProperties": false,
- "type": "object",
- "description": "Shows suggestions as the input is entered\nOnly for input prompts."
- },
- "body": {
- "type": "string",
- "description": "The message of the confirmation prompt.\nOnly for confirm prompts.",
- "examples": [
- "Are you sure you want to push to the remote?"
- ]
- },
- "options": {
- "items": {
- "properties": {
- "name": {
- "type": "string",
- "description": "The first part of the label"
- },
- "description": {
- "type": "string",
- "description": "The second part of the label"
- },
- "value": {
- "type": "string",
- "minLength": 1,
- "description": "The value that will be used in the command",
- "examples": [
- "feature"
- ]
- }
- },
- "additionalProperties": false,
- "type": "object"
- },
- "type": "array",
- "description": "Menu options.\nOnly for menu prompts."
- },
- "command": {
- "type": "string",
- "description": "The command to run to generate menu options\nOnly for menuFromCommand prompts.",
- "examples": [
- "git fetch {{.Form.Remote}} {{.Form.Branch}} \u0026\u0026 git checkout FETCH_HEAD"
- ]
- },
- "filter": {
- "type": "string",
- "description": "The regexp to run specifying groups which are going to be kept from the command's output.\nOnly for menuFromCommand prompts.",
- "examples": [
- ".*{{.SelectedRemote.Name }}/(?P\u003cbranch\u003e.*)"
- ]
- },
- "valueFormat": {
- "type": "string",
- "description": "How to format matched groups from the filter to construct a menu item's value.\nOnly for menuFromCommand prompts.",
- "examples": [
- "{{ .branch }}"
- ]
- },
- "labelFormat": {
- "type": "string",
- "description": "Like valueFormat but for the labels. If `labelFormat` is not specified, `valueFormat` is shown instead.\nOnly for menuFromCommand prompts.",
- "examples": [
- "{{ .branch | green }}"
- ]
- }
- },
- "additionalProperties": false,
- "type": "object"
- },
- "type": "array",
- "description": "A list of prompts that will request user input before running the final command"
- },
- "loadingText": {
- "type": "string",
- "description": "Text to display while waiting for command to finish",
- "examples": [
- "Loading..."
- ]
- },
- "description": {
- "type": "string",
- "description": "Label for the custom command when displayed in the keybindings menu"
- },
- "stream": {
- "type": "boolean",
- "description": "If true, stream the command's output to the Command Log panel"
- },
- "showOutput": {
- "type": "boolean",
- "description": "If true, show the command's output in a popup within Lazygit"
- },
- "after": {
- "properties": {
- "checkForConflicts": {
- "type": "boolean"
- }
- },
- "additionalProperties": false,
- "type": "object",
- "description": "Actions to take after the command has completed"
- }
- },
- "additionalProperties": false,
- "type": "object"
- },
- "type": "array",
- "uniqueItems": true,
- "description": "User-configured commands that can be invoked from within Lazygit"
- },
- "services": {
- "additionalProperties": {
- "type": "string"
- },
- "type": "object",
- "description": "See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-pull-request-urls"
- },
- "notARepository": {
- "type": "string",
- "enum": [
- "prompt",
- "create",
- "skip",
- "quit"
- ],
- "description": "What to do when opening Lazygit outside of a git repo.\n- 'prompt': (default) ask whether to initialize a new repo or open in the most recent repo\n- 'create': initialize a new repo\n- 'skip': open most recent repo\n- 'quit': exit Lazygit",
- "default": "prompt"
- },
- "promptToReturnFromSubprocess": {
- "type": "boolean",
- "description": "If true, display a confirmation when subprocess terminates. This allows you to view the output of the subprocess before returning to Lazygit.",
- "default": true
}
},
"additionalProperties": false,