on main help sign in
add extra help binding
23763fbKujtim Hoxha
internal/tui/tui.go+2−2
@@ -52,7 +52,7 @@ var keys = keyMap{
52 key.WithHelp("ctrl+c", "quit"),
52 key.WithHelp("ctrl+c", "quit"),
53 ),
53 ),
54 Help: key.NewBinding(
54 Help: key.NewBinding(
55− key.WithKeys("ctrl+_"),
55+ key.WithKeys("ctrl+_", "ctrl+h"),
56 key.WithHelp("ctrl+?", "toggle help"),
56 key.WithHelp("ctrl+?", "toggle help"),
57 ),
57 ),
58
58
@@ -427,7 +427,7 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
427 // If submitted, replace all named arguments and run the command
427 // If submitted, replace all named arguments and run the command
428 if msg.Submit {
428 if msg.Submit {
429 content := msg.Content
429 content := msg.Content
430−
430+
431 // Replace each named argument with its value
431 // Replace each named argument with its value
432 for name, value := range msg.Args {
432 for name, value := range msg.Args {
433 placeholder := "$" + name
433 placeholder := "$" + name