diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-11-30 19:36:35 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-11-30 19:36:35 +1100 |
commit | 65d6d7fb2d7067da34811dd53dadd79c9277f81b (patch) | |
tree | e600e3eabca5aab1a53237262c417e5b9cd75de0 /pkg | |
parent | 5b3f684afbe308e05e8a0406e0fd076b27dd30eb (diff) |
fix ignore file keybinding
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/config/user_config.go | 4 | ||||
-rw-r--r-- | pkg/gui/controllers/files_controller.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index 52d034f43..d0e909a2a 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -210,7 +210,7 @@ type KeybindingFilesConfig struct { CommitChangesWithoutHook string `yaml:"commitChangesWithoutHook"` AmendLastCommit string `yaml:"amendLastCommit"` CommitChangesWithEditor string `yaml:"commitChangesWithEditor"` - IgnoreOrExcludeFile string `yaml:"IgnoreOrExcludeFile"` + IgnoreFile string `yaml:"ignoreFile"` RefreshFiles string `yaml:"refreshFiles"` StashAllChanges string `yaml:"stashAllChanges"` ViewStashOptions string `yaml:"viewStashOptions"` @@ -496,7 +496,7 @@ func GetDefaultConfig() *UserConfig { CommitChangesWithoutHook: "w", AmendLastCommit: "A", CommitChangesWithEditor: "C", - IgnoreOrExcludeFile: "i", + IgnoreFile: "i", RefreshFiles: "r", StashAllChanges: "s", ViewStashOptions: "S", diff --git a/pkg/gui/controllers/files_controller.go b/pkg/gui/controllers/files_controller.go index 2a4434264..22da8332b 100644 --- a/pkg/gui/controllers/files_controller.go +++ b/pkg/gui/controllers/files_controller.go @@ -83,7 +83,7 @@ func (self *FilesController) GetKeybindings(opts types.KeybindingsOpts) []*types Description: self.c.Tr.LcOpenFile, }, { - Key: opts.GetKey(opts.Config.Files.IgnoreOrExcludeFile), + Key: opts.GetKey(opts.Config.Files.IgnoreFile), Handler: self.checkSelectedFileNode(self.ignoreOrExcludeMenu), Description: self.c.Tr.Actions.LcIgnoreExcludeFile, OpensMenu: true, |