summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
authorDavyd McColl <davydm@gmail.com>2021-05-28 12:02:19 +0200
committerJesse Duffield <jessedduffield@gmail.com>2021-07-01 17:13:13 +1000
commita9f04d3925bff4ec487a8c622ce84c79ef64ab87 (patch)
tree58f80bb76136d06e5c5d189f89fd4174c3099d58 /pkg/config
parent83834a2c2e50922d58b052b116d50a9fc3903e84 (diff)
:sparkles: facilitate toggling whitespace in the diff view with a hotkey (c-w by default)
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/user_config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go
index e7231a55b..f87567ac0 100644
--- a/pkg/config/user_config.go
+++ b/pkg/config/user_config.go
@@ -165,6 +165,7 @@ type KeybindingUniversalConfig struct {
SubmitEditorText string `yaml:"submitEditorText"`
AppendNewline string `yaml:"appendNewline"`
ExtrasMenu string `yaml:"extrasMenu"`
+ ToggleWhitespaceInDiffView string `yaml:"toggleWhitespaceInDiffView"`
}
type KeybindingStatusConfig struct {
@@ -404,6 +405,7 @@ func GetDefaultConfig() *UserConfig {
SubmitEditorText: "<enter>",
AppendNewline: "<a-enter>",
ExtrasMenu: "@",
+ ToggleWhitespaceInDiffView: "<c-w>",
},
Status: KeybindingStatusConfig{
CheckForUpdate: "u",