Skip to content

Commit ae4c55c

Browse files
committed
Wrap long comment lines in Config.md
1 parent 8e94eb4 commit ae4c55c

File tree

2 files changed

+140
-53
lines changed

2 files changed

+140
-53
lines changed

docs/Config.md

Lines changed: 117 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,15 @@ gui:
6464
# One of: 'margin' (default) | 'jump'
6565
scrollOffBehavior: margin
6666

67-
# The number of spaces per tab; used for everything that's shown in the main view, but probably mostly relevant for diffs.
68-
# Note that when using a pager, the pager has its own tab width setting, so you need to pass it separately in the pager command.
67+
# The number of spaces per tab; used for everything that's shown in the main
68+
# view, but probably mostly relevant for diffs.
69+
# Note that when using a pager, the pager has its own tab width setting, so you
70+
# need to pass it separately in the pager command.
6971
tabWidth: 4
7072

7173
# If true, capture mouse events.
72-
# When mouse events are captured, it's a little harder to select text: e.g. requiring you to hold the option key when on macOS.
74+
# When mouse events are captured, it's a little harder to select text: e.g.
75+
# requiring you to hold the option key when on macOS.
7376
mouseEvents: true
7477

7578
# If true, do not show a warning when amending a commit.
@@ -81,42 +84,57 @@ gui:
8184
# If true, do not show warning when applying/popping the stash
8285
skipStashWarning: false
8386

84-
# If true, do not show a warning when attempting to commit without any staged files; instead stage all unstaged files.
87+
# If true, do not show a warning when attempting to commit without any staged
88+
# files; instead stage all unstaged files.
8589
skipNoStagedFilesWarning: false
8690

8791
# If true, do not show a warning when rewording a commit via an external editor
8892
skipRewordInEditorWarning: false
8993

90-
# Fraction of the total screen width to use for the left side section. You may want to pick a small number (e.g. 0.2) if you're using a narrow screen, so that you can see more of the main section.
94+
# Fraction of the total screen width to use for the left side section. You may
95+
# want to pick a small number (e.g. 0.2) if you're using a narrow screen, so
96+
# that you can see more of the main section.
9197
# Number from 0 to 1.0.
9298
sidePanelWidth: 0.3333
9399

94-
# If true, increase the height of the focused side window; creating an accordion effect.
100+
# If true, increase the height of the focused side window; creating an accordion
101+
# effect.
95102
expandFocusedSidePanel: false
96103

97-
# The weight of the expanded side panel, relative to the other panels. 2 means twice as tall as the other panels. Only relevant if `expandFocusedSidePanel` is true.
104+
# The weight of the expanded side panel, relative to the other panels. 2 means
105+
# twice as tall as the other panels. Only relevant if `expandFocusedSidePanel`
106+
# is true.
98107
expandedSidePanelWeight: 2
99108

100-
# Sometimes the main window is split in two (e.g. when the selected file has both staged and unstaged changes). This setting controls how the two sections are split.
109+
# Sometimes the main window is split in two (e.g. when the selected file has
110+
# both staged and unstaged changes). This setting controls how the two sections
111+
# are split.
101112
# Options are:
102113
# - 'horizontal': split the window horizontally
103114
# - 'vertical': split the window vertically
104-
# - 'flexible': (default) split the window horizontally if the window is wide enough, otherwise split vertically
115+
# - 'flexible': (default) split the window horizontally if the window is wide
116+
# enough, otherwise split vertically
105117
mainPanelSplitMode: flexible
106118

107-
# How the window is split when in half screen mode (i.e. after hitting '+' once).
119+
# How the window is split when in half screen mode (i.e. after hitting '+'
120+
# once).
108121
# Possible values:
109-
# - 'left': split the window horizontally (side panel on the left, main view on the right)
122+
# - 'left': split the window horizontally (side panel on the left, main view on
123+
# the right)
110124
# - 'top': split the window vertically (side panel on top, main view below)
111125
enlargedSideViewLocation: left
112126

113-
# If true, wrap lines in the staging view to the width of the view. This makes it much easier to work with diffs that have long lines, e.g. paragraphs of markdown text.
127+
# If true, wrap lines in the staging view to the width of the view. This makes
128+
# it much easier to work with diffs that have long lines, e.g. paragraphs of
129+
# markdown text.
114130
wrapLinesInStagingView: true
115131

116-
# If true, hunk selection mode will be enabled by default when entering the staging view.
132+
# If true, hunk selection mode will be enabled by default when entering the
133+
# staging view.
117134
useHunkModeInStagingView: true
118135

119-
# One of 'auto' (default) | 'en' | 'zh-CN' | 'zh-TW' | 'pl' | 'nl' | 'ja' | 'ko' | 'ru' | 'pt'
136+
# One of 'auto' (default) | 'en' | 'zh-CN' | 'zh-TW' | 'pl' | 'nl' | 'ja' | 'ko'
137+
# | 'ru' | 'pt'
120138
language: auto
121139

122140
# Format used when displaying time e.g. commit time.
@@ -189,11 +207,15 @@ gui:
189207
# If true, show the '5 of 20' footer at the bottom of list views
190208
showListFooter: true
191209

192-
# If true, display the files in the file views as a tree. If false, display the files as a flat list.
193-
# This can be toggled from within Lazygit with the '`' key, but that will not change the default.
210+
# If true, display the files in the file views as a tree. If false, display the
211+
# files as a flat list.
212+
# This can be toggled from within Lazygit with the '`' key, but that will not
213+
# change the default.
194214
showFileTree: true
195215

196-
# If true, add a "/" root item in the file tree representing the root of the repository. It is only added when necessary, i.e. when there is more than one item at top level.
216+
# If true, add a "/" root item in the file tree representing the root of the
217+
# repository. It is only added when necessary, i.e. when there is more than one
218+
# item at top level.
197219
showRootItemInFileTree: true
198220

199221
# If true, show the number of lines changed per file in the Files view
@@ -205,7 +227,9 @@ gui:
205227
# If true, show the command log
206228
showCommandLog: true
207229

208-
# If true, show the bottom line that contains keybinding info and useful buttons. If false, this line will be hidden except to display a loader for an in-progress action.
230+
# If true, show the bottom line that contains keybinding info and useful
231+
# buttons. If false, this line will be hidden except to display a loader for an
232+
# in-progress action.
209233
showBottomLine: true
210234

211235
# If true, show jump-to-window keybindings in window titles.
@@ -216,10 +240,12 @@ gui:
216240
# If empty, do not show icons.
217241
nerdFontsVersion: ""
218242

219-
# If true (default), file icons are shown in the file views. Only relevant if NerdFontsVersion is not empty.
243+
# If true (default), file icons are shown in the file views. Only relevant if
244+
# NerdFontsVersion is not empty.
220245
showFileIcons: true
221246

222-
# Length of author name in (non-expanded) commits view. 2 means show initials only.
247+
# Length of author name in (non-expanded) commits view. 2 means show initials
248+
# only.
223249
commitAuthorShortLength: 2
224250

225251
# Length of author name in expanded commits view. 2 means show initials only.
@@ -240,18 +266,21 @@ gui:
240266

241267
# Whether to split the main window when viewing file changes.
242268
# One of: 'auto' | 'always'
243-
# If 'auto', only split the main window when a file has both staged and unstaged changes
269+
# If 'auto', only split the main window when a file has both staged and unstaged
270+
# changes
244271
splitDiff: auto
245272

246-
# Default size for focused window. Can be changed from within Lazygit with '+' and '_' (but this won't change the default).
273+
# Default size for focused window. Can be changed from within Lazygit with '+'
274+
# and '_' (but this won't change the default).
247275
# One of: 'normal' (default) | 'half' | 'full'
248276
screenMode: normal
249277

250278
# Window border style.
251279
# One of 'rounded' (default) | 'single' | 'double' | 'hidden' | 'bold'
252280
border: rounded
253281

254-
# If true, show a seriously epic explosion animation when nuking the working tree.
282+
# If true, show a seriously epic explosion animation when nuking the working
283+
# tree.
255284
animateExplosion: true
256285

257286
# Whether to stack UI components on top of each other.
@@ -284,14 +313,16 @@ gui:
284313
# If true, jump to the Files panel after applying a stash
285314
switchToFilesAfterStashApply: true
286315

287-
# If true, when using the panel jump keys (default 1 through 5) and target panel is already active, go to next tab instead
316+
# If true, when using the panel jump keys (default 1 through 5) and target panel
317+
# is already active, go to next tab instead
288318
switchTabsWithPanelJumpKeys: false
289319

290320
# Config relating to git
291321
git:
292322
# See https://github.com/jesseduffield/lazygit/blob/master/docs/Custom_Pagers.md
293323
paging:
294-
# Value of the --color arg in the git diff command. Some pagers want this to be set to 'always' and some want it set to 'never'
324+
# Value of the --color arg in the git diff command. Some pagers want this to be
325+
# set to 'always' and some want it set to 'never'
295326
colorArg: always
296327

297328
# e.g.
@@ -303,7 +334,10 @@ git:
303334
# e.g. 'difft --color=always'
304335
externalDiffCommand: ""
305336

306-
# If true, Lazygit will use git's `diff.external` config for paging. The advantage over `externalDiffCommand` is that this can be configured per file type in .gitattributes; see https://git-scm.com/docs/gitattributes#_defining_an_external_diff_driver.
337+
# If true, Lazygit will use git's `diff.external` config for paging. The
338+
# advantage over `externalDiffCommand` is that this can be configured per file
339+
# type in .gitattributes; see
340+
# https://git-scm.com/docs/gitattributes#_defining_an_external_diff_driver.
307341
useExternalDiffGitConfig: false
308342

309343
# Config relating to committing
@@ -319,22 +353,26 @@ git:
319353

320354
# Config relating to merging
321355
merging:
322-
# If true, run merges in a subprocess so that if a commit message is required, Lazygit will not hang
356+
# If true, run merges in a subprocess so that if a commit message is required,
357+
# Lazygit will not hang
323358
# Only applicable to unix users.
324359
manualCommit: false
325360

326361
# Extra args passed to `git merge`, e.g. --no-ff
327362
args: ""
328363

329-
# The commit message to use for a squash merge commit. Can contain "{{selectedRef}}" and "{{currentBranch}}" placeholders.
364+
# The commit message to use for a squash merge commit. Can contain
365+
# "{{selectedRef}}" and "{{currentBranch}}" placeholders.
330366
squashMergeMessage: Squash merge {{selectedRef}} into {{currentBranch}}
331367

332-
# list of branches that are considered 'main' branches, used when displaying commits
368+
# list of branches that are considered 'main' branches, used when displaying
369+
# commits
333370
mainBranches:
334371
- master
335372
- main
336373

337-
# Prefix to use when skipping hooks. E.g. if set to 'WIP', then pre-commit hooks will be skipped when the commit message starts with 'WIP'
374+
# Prefix to use when skipping hooks. E.g. if set to 'WIP', then pre-commit hooks
375+
# will be skipped when the commit message starts with 'WIP'
338376
skipHookPrefix: WIP
339377

340378
# If true, periodically fetch from remote
@@ -343,30 +381,40 @@ git:
343381
# If true, periodically refresh files and submodules
344382
autoRefresh: true
345383

346-
# If not "none", lazygit will automatically fast-forward local branches to match their upstream after fetching. Applies to branches that are not the currently checked out branch, and only to those that are strictly behind their upstream (as opposed to diverged).
384+
# If not "none", lazygit will automatically fast-forward local branches to match
385+
# their upstream after fetching. Applies to branches that are not the currently
386+
# checked out branch, and only to those that are strictly behind their upstream
387+
# (as opposed to diverged).
347388
# Possible values: 'none' | 'onlyMainBranches' | 'allBranches'
348389
autoForwardBranches: onlyMainBranches
349390

350391
# If true, pass the --all arg to git fetch
351392
fetchAll: true
352393

353-
# If true, lazygit will automatically stage files that used to have merge conflicts but no longer do; and it will also ask you if you want to continue a merge or rebase if you've resolved all conflicts. If false, it won't do either of these things.
394+
# If true, lazygit will automatically stage files that used to have merge
395+
# conflicts but no longer do; and it will also ask you if you want to continue a
396+
# merge or rebase if you've resolved all conflicts. If false, it won't do either
397+
# of these things.
354398
autoStageResolvedConflicts: true
355399

356400
# Command used when displaying the current branch git log in the main window
357401
branchLogCmd: git log --graph --color=always --abbrev-commit --decorate --date=relative --pretty=medium {{branchName}} --
358402

359-
# Commands used to display git log of all branches in the main window, they will be cycled in order of appearance (array of strings)
403+
# Commands used to display git log of all branches in the main window, they will
404+
# be cycled in order of appearance (array of strings)
360405
allBranchesLogCmds:
361406
- git log --graph --all --color=always --abbrev-commit --decorate --date=relative --pretty=medium
362407

363-
# If true, git diffs are rendered with the `--ignore-all-space` flag, which ignores whitespace changes. Can be toggled from within Lazygit with `<c-w>`.
408+
# If true, git diffs are rendered with the `--ignore-all-space` flag, which
409+
# ignores whitespace changes. Can be toggled from within Lazygit with `<c-w>`.
364410
ignoreWhitespaceInDiffView: false
365411

366-
# The number of lines of context to show around each diff hunk. Can be changed from within Lazygit with the `{` and `}` keys.
412+
# The number of lines of context to show around each diff hunk. Can be changed
413+
# from within Lazygit with the `{` and `}` keys.
367414
diffContextSize: 3
368415

369-
# The threshold for considering a file to be renamed, in percent. Can be changed from within Lazygit with the `(` and `)` keys.
416+
# The threshold for considering a file to be renamed, in percent. Can be changed
417+
# from within Lazygit with the `(` and `)` keys.
370418
renameSimilarityThreshold: 50
371419

372420
# If true, do not spawn a separate process when using GPG
@@ -391,31 +439,38 @@ git:
391439
# Config for showing the log in the commits view
392440
log:
393441
# One of: 'date-order' | 'author-date-order' | 'topo-order' | 'default'
394-
# 'topo-order' makes it easier to read the git log graph, but commits may not appear chronologically. See https://git-scm.com/docs/
442+
# 'topo-order' makes it easier to read the git log graph, but commits may not
443+
# appear chronologically. See https://git-scm.com/docs/
395444
#
396-
# Can be changed from within Lazygit with `Log menu -> Commit sort order` (`<c-l>` in the commits window by default).
445+
# Can be changed from within Lazygit with `Log menu -> Commit sort order`
446+
# (`<c-l>` in the commits window by default).
397447
order: topo-order
398448

399449
# This determines whether the git graph is rendered in the commits panel
400450
# One of 'always' | 'never' | 'when-maximised'
401451
#
402-
# Can be toggled from within lazygit with `Log menu -> Show git graph` (`<c-l>` in the commits window by default).
452+
# Can be toggled from within lazygit with `Log menu -> Show git graph` (`<c-l>`
453+
# in the commits window by default).
403454
showGraph: always
404455

405-
# displays the whole git graph by default in the commits view (equivalent to passing the `--all` argument to `git log`)
456+
# displays the whole git graph by default in the commits view (equivalent to
457+
# passing the `--all` argument to `git log`)
406458
showWholeGraph: false
407459

408460
# How branches are sorted in the local branches view.
409461
# One of: 'date' (default) | 'recency' | 'alphabetical'
410-
# Can be changed from within Lazygit with the Sort Order menu (`s`) in the branches panel.
462+
# Can be changed from within Lazygit with the Sort Order menu (`s`) in the
463+
# branches panel.
411464
localBranchSortOrder: date
412465

413466
# How branches are sorted in the remote branches view.
414467
# One of: 'date' (default) | 'alphabetical'
415-
# Can be changed from within Lazygit with the Sort Order menu (`s`) in the remote branches panel.
468+
# Can be changed from within Lazygit with the Sort Order menu (`s`) in the
469+
# remote branches panel.
416470
remoteBranchSortOrder: date
417471

418-
# When copying commit hashes to the clipboard, truncate them to this length. Set to 40 to disable truncation.
472+
# When copying commit hashes to the clipboard, truncate them to this length. Set
473+
# to 40 to disable truncation.
419474
truncateCopiedCommitHashesTo: 12
420475

421476
# Periodic update checks
@@ -439,18 +494,22 @@ refresher:
439494
# If true, show a confirmation popup before quitting Lazygit
440495
confirmOnQuit: false
441496

442-
# If true, exit Lazygit when the user presses escape in a context where there is nothing to cancel/close
497+
# If true, exit Lazygit when the user presses escape in a context where there is
498+
# nothing to cancel/close
443499
quitOnTopLevelReturn: false
444500

445-
# Config relating to things outside of Lazygit like how files are opened, copying to clipboard, etc
501+
# Config relating to things outside of Lazygit like how files are opened,
502+
# copying to clipboard, etc
446503
os:
447504
# Command for editing a file. Should contain "{{filename}}".
448505
edit: ""
449506

450-
# Command for editing a file at a given line number. Should contain "{{filename}}", and may optionally contain "{{line}}".
507+
# Command for editing a file at a given line number. Should contain
508+
# "{{filename}}", and may optionally contain "{{line}}".
451509
editAtLine: ""
452510

453-
# Same as EditAtLine, except that the command needs to wait until the window is closed.
511+
# Same as EditAtLine, except that the command needs to wait until the window is
512+
# closed.
454513
editAtLineAndWait: ""
455514

456515
# Whether lazygit suspends until an edit process returns
@@ -459,10 +518,12 @@ os:
459518
# For opening a directory in an editor
460519
openDirInEditor: ""
461520

462-
# A built-in preset that sets all of the above settings. Supported presets are defined in the getPreset function in editor_presets.go.
521+
# A built-in preset that sets all of the above settings. Supported presets are
522+
# defined in the getPreset function in editor_presets.go.
463523
editPreset: ""
464524

465-
# Command for opening a file, as if the file is double-clicked. Should contain "{{filename}}", but doesn't support "{{line}}".
525+
# Command for opening a file, as if the file is double-clicked. Should contain
526+
# "{{filename}}", but doesn't support "{{line}}".
466527
open: ""
467528

468529
# Command for opening a link. Should contain "{{link}}".
@@ -476,7 +537,9 @@ os:
476537
# See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-command-for-copying-to-and-pasting-from-clipboard
477538
readFromClipboardCmd: ""
478539

479-
# A shell startup file containing shell aliases or shell functions. This will be sourced before running any shell commands, so that shell functions are available in the `:` command prompt or even in custom commands.
540+
# A shell startup file containing shell aliases or shell functions. This will be
541+
# sourced before running any shell commands, so that shell functions are
542+
# available in the `:` command prompt or even in custom commands.
480543
# See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#using-aliases-or-functions-in-shell-commands
481544
shellFunctionsFile: ""
482545

@@ -491,13 +554,15 @@ customCommands: []
491554
services: {}
492555

493556
# What to do when opening Lazygit outside of a git repo.
494-
# - 'prompt': (default) ask whether to initialize a new repo or open in the most recent repo
557+
# - 'prompt': (default) ask whether to initialize a new repo or open in the most
558+
# recent repo
495559
# - 'create': initialize a new repo
496560
# - 'skip': open most recent repo
497561
# - 'quit': exit Lazygit
498562
notARepository: prompt
499563

500-
# If true, display a confirmation when subprocess terminates. This allows you to view the output of the subprocess before returning to Lazygit.
564+
# If true, display a confirmation when subprocess terminates. This allows you to
565+
# view the output of the subprocess before returning to Lazygit.
501566
promptToReturnFromSubprocess: true
502567

503568
# Keybindings

0 commit comments

Comments
 (0)