add extra help binding
This commit is contained in:
parent
05b0570f48
commit
23763fbc49
1 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ var keys = keyMap{
|
||||||
key.WithHelp("ctrl+c", "quit"),
|
key.WithHelp("ctrl+c", "quit"),
|
||||||
),
|
),
|
||||||
Help: key.NewBinding(
|
Help: key.NewBinding(
|
||||||
key.WithKeys("ctrl+_"),
|
key.WithKeys("ctrl+_", "ctrl+h"),
|
||||||
key.WithHelp("ctrl+?", "toggle help"),
|
key.WithHelp("ctrl+?", "toggle help"),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
@ -427,7 +427,7 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||||
// If submitted, replace all named arguments and run the command
|
// If submitted, replace all named arguments and run the command
|
||||||
if msg.Submit {
|
if msg.Submit {
|
||||||
content := msg.Content
|
content := msg.Content
|
||||||
|
|
||||||
// Replace each named argument with its value
|
// Replace each named argument with its value
|
||||||
for name, value := range msg.Args {
|
for name, value := range msg.Args {
|
||||||
placeholder := "$" + name
|
placeholder := "$" + name
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue