@@ -1542,6 +1542,10 @@ func (m *UI) handleKeyPressMsg(msg tea.KeyPressMsg) tea.Cmd {
1542 if cmd != nil {
1542 if cmd != nil {
1543 cmds = append(cmds, cmd)
1543 cmds = append(cmds, cmd)
1545+ case key.Matches(msg, m.keyMap.Editor.Commands) && m.textarea.Value() == "":
1546+ if cmd := m.openCommandsDialog(); cmd != nil {
1547+ cmds = append(cmds, cmd)
1545 default:
1549 default:
1546 if handleGlobalKeys(msg) {
1550 if handleGlobalKeys(msg) {
1547 // Handle global keys first before passing to textarea.
1551 // Handle global keys first before passing to textarea.
@@ -1865,7 +1869,7 @@ func (m *UI) ShortHelp() []key.Binding {
1865 k := &m.keyMap
1869 k := &m.keyMap
1866 tab := k.Tab
1870 tab := k.Tab
1867 commands := k.Commands
1871 commands := k.Commands
1868− if m.focus == uiFocusEditor && m.textarea.LineCount() == 0 {
1872+ if m.focus == uiFocusEditor && m.textarea.Value() == "" {
1869 commands.SetHelp("/ or ctrl+p", "commands")
1873 commands.SetHelp("/ or ctrl+p", "commands")
@@ -1941,7 +1945,7 @@ func (m *UI) FullHelp() [][]key.Binding {
1941 hasAttachments := len(m.attachments.List()) > 0
1945 hasAttachments := len(m.attachments.List()) > 0
1942 hasSession := m.hasSession()
1946 hasSession := m.hasSession()
1943 commands := k.Commands
1947 commands := k.Commands
1944− if m.focus == uiFocusEditor && m.textarea.LineCount() == 0 {
1948+ if m.focus == uiFocusEditor && m.textarea.Value() == "" {
1945 commands.SetHelp("/ or ctrl+p", "commands")
1949 commands.SetHelp("/ or ctrl+p", "commands")