Skip to content

Commit dba871e

Browse files
committed
Add Ctrl+? to status bar help bindings
- Shows 'Ctrl+? help' in the status bar so users know the help dialog exists - Makes the help feature more discoverable Assisted-By: docker-agent
1 parent a918425 commit dba871e

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ vendor
2222
/cagent
2323
/cagent-*
2424
/docker-mcp-*
25+
docker-agent

pkg/tui/tui.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,11 @@ func (m *appModel) Bindings() []key.Binding {
15771577
key.WithHelp("Ctrl+k", "commands"),
15781578
))
15791579

1580+
bindings = append(bindings, key.NewBinding(
1581+
key.WithKeys("ctrl+?"),
1582+
key.WithHelp("Ctrl+?", "help"),
1583+
))
1584+
15801585
// Show newline help based on keyboard enhancement support
15811586
if m.keyboardEnhancementsSupported {
15821587
bindings = append(bindings, key.NewBinding(

0 commit comments

Comments
 (0)