From e3944c170701212706b54ce83b7cdaee75ae3fc9 Mon Sep 17 00:00:00 2001 From: Adrian Gielniewski Date: Mon, 17 Feb 2025 19:42:52 +0100 Subject: [PATCH] Fix description of showFileTree Change '~' to '`' as it's the correct key. Signed-off-by: Adrian Gielniewski --- docs/Config.md | 2 +- pkg/config/user_config.go | 2 +- schema/config.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Config.md b/docs/Config.md index 26fa2efb6..03a29ff18 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -166,7 +166,7 @@ gui: showListFooter: true # If true, display the files in the file views as a tree. If false, display the files as a flat list. - # This can be toggled from within Lazygit with the '~' key, but that will not change the default. + # This can be toggled from within Lazygit with the '`' key, but that will not change the default. showFileTree: true # If true, show the number of lines changed per file in the Files view diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index 169b67c40..9fea5ea64 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -114,7 +114,7 @@ type GuiConfig struct { // If true, show the '5 of 20' footer at the bottom of list views ShowListFooter bool `yaml:"showListFooter"` // If true, display the files in the file views as a tree. If false, display the files as a flat list. - // This can be toggled from within Lazygit with the '~' key, but that will not change the default. + // This can be toggled from within Lazygit with the '`' key, but that will not change the default. ShowFileTree bool `yaml:"showFileTree"` // If true, show the number of lines changed per file in the Files view ShowNumstatInFilesView bool `yaml:"showNumstatInFilesView"` diff --git a/schema/config.json b/schema/config.json index 492f923e0..a7524eb77 100644 --- a/schema/config.json +++ b/schema/config.json @@ -302,7 +302,7 @@ }, "showFileTree": { "type": "boolean", - "description": "If true, display the files in the file views as a tree. If false, display the files as a flat list.\nThis can be toggled from within Lazygit with the '~' key, but that will not change the default.", + "description": "If true, display the files in the file views as a tree. If false, display the files as a flat list.\nThis can be toggled from within Lazygit with the '`' key, but that will not change the default.", "default": true }, "showNumstatInFilesView": {