@@ -264,8 +264,13 @@ func (m *editorCmp) Update(msg tea.Msg) (util.Model, tea.Cmd) {
264264 cur := m.textarea.Cursor()
265265 curIdx := m.textarea.Width()*cur.Y + cur.X
266266 switch {
267+ // Open command palette when "/" is pressed on empty prompt
268+ case msg.String() == "/" && len(strings.TrimSpace(m.textarea.Value())) == 0:
269+ return m, util.CmdHandler(dialogs.OpenDialogMsg{
270+ Model: commands.NewCommandDialog(m.session.ID),
271+ })
267272 // Completions
268− case msg.String() == "/" && !m.isCompletionsOpen &&
273+ case msg.String() == "@" && !m.isCompletionsOpen &&
269274 // only show if beginning of prompt, or if previous char is a space or newline:
270275 (len(m.textarea.Value()) == 0 || unicode.IsSpace(rune(m.textarea.Value()[len(m.textarea.Value())-1]))):
271276 m.isCompletionsOpen = true
@@ -337,7 +342,7 @@ func (m *editorCmp) Update(msg tea.Msg) (util.Model, tea.Cmd) {
337342 cmds = append(cmds, util.CmdHandler(completions.CloseCompletionsMsg{}))
338343 } else {
339344 word := m.textarea.Word()
340− if strings.HasPrefix(word, "/") {
345+ if strings.HasPrefix(word, "@") {
341346 // XXX: wont' work if editing in the middle of the field.
342347 m.completionsStartIndex = strings.LastIndex(m.textarea.Value(), word)
343348 m.currentQuery = word[1:]