issue-9: finishing keybinding service and implemented controller

Have now got rebinding keys working with the "rebind" command.
Still need to make sure key names are correct and implement rebinding
as part of an RC file and add bindings for the table.
This commit is contained in:
Leon Mika 2022-08-25 22:14:36 +10:00
parent 2f89610c51
commit 7c5bfd27a3
6 changed files with 159 additions and 17 deletions

View file

@ -98,15 +98,17 @@ func main() {
},
}
commandController := commandctrl.NewCommandController()
keyBindingService := keybindings.NewService(defaultKeyBindings)
_ = keyBindingService
keyBindingController := controllers.NewKeyBindingController(keyBindingService)
commandController := commandctrl.NewCommandController()
model := ui.NewModel(
tableReadController,
tableWriteController,
itemRendererService,
commandController,
keyBindingController,
defaultKeyBindings,
)