1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Move file discard action into files controller

It's better just having all the keybindings in one file especially when you want to
share code
This commit is contained in:
Jesse Duffield
2024-01-18 11:12:30 +11:00
parent b7d4db2446
commit 798225d9e1
3 changed files with 135 additions and 177 deletions

View File

@ -172,7 +172,6 @@ func (gui *Gui) resetHelpersAndControllers() {
branchesController := controllers.NewBranchesController(common)
gitFlowController := controllers.NewGitFlowController(common)
filesRemoveController := controllers.NewFilesRemoveController(common)
stashController := controllers.NewStashController(common)
commitFilesController := controllers.NewCommitFilesController(common)
patchExplorerControllerFactory := controllers.NewPatchExplorerControllerFactory(common)
@ -297,7 +296,6 @@ func (gui *Gui) resetHelpersAndControllers() {
controllers.AttachControllers(gui.State.Contexts.Files,
filesController,
filesRemoveController,
)
controllers.AttachControllers(gui.State.Contexts.Tags,