Ability to use slash commands in the middle of a message

I imagine this is low priority, but also imagine it should be easy to implement for the team.

Currently, I like to use the /“Reference open editors” to get everything in context. However, sometimes I’ll be in the middle of writing a prompt, and realize that some more files need to be in context, so I’ll open them. Now, I’d like to just /“Reference open editors”, to add them to the context for the prompt I’m writing.

Right now, though, this doesn’t work. Typing “/” does nothing. The “/” only triggers the commands menu when the prompt input space is empty. So, I have to cut my prompt message, to remove it, then execute the command, then paste my message again. Mildly inconvenient.

I’d like for the menu for the “/” command to be triggered even when the message box already has text.

1 Like

Thanks for the suggestion, definitely seems feasible to add, but you are right that it’d unfortunately be pretty low priority :frowning:

1 Like

I’m also finding a lot of friction by not having this feature, for the same exact use case as @luiz00martins.

1 Like

Also I want to add, just make this a keyboard shortcut. If I could hit ctrl-shift-R or something to add open editors to context it would make life so much easier.

We are looking at changing this presently to be more unified with the existing methods of context! Expect some changes around this soon.

2 Likes

I’ve seen some MCP’s use the / command in their tool description so that we can trigger the MCP with the slash command. It would be nice if a popup appears when I type / so it shows the enabled MCPs for me to choose one