It’s driving me nuts that command-k, the standard for clearing the terminal scroll back, opens the AI tools. Like, I get it that you’ve standardized on that for your tools, and that’s great, but you also didn’t change the shortcut to clear terminal scroll back.
Unfortunately, setting a different shortcut for cursorai.action.generateInTerminal
doesn’t allow the terminal to be cleared. Cmd+K just fires the chord starter and you get the common message (Cmd+K) was pressed. Waiting for second key of chord…
.
Any ideas if there’s a way to make Cmd+K shortcut work standalone in the terminal, instead of waiting for a chord?
This is really important for me as well. I’m so used to Command+K and it’s a crucial part in my workflow. It’s really uncomfortable for me to change this habit, of clearing the terminal without Command+K.
Same. Driving me nuts. There are other bindings too, like CMD + SHIFT + L which would otherwise select all other instances of the current selection. I don’t want to have to remap my mind for this.
- another… This is bad. I have tried to remap the keys as stated Cmd K hotkey conflict - #2 by arvid220u , and still have that composer pops up. I am about to stop the subscription…
Not having this disrupted my flow, so I’m retraining with control+L to clear the terminal
I was able to prevent the composer by adding the !terminalFocus
condition to the composer.startComposerPrompt
shortcut.
So following overrides work for me (cursorai.action.generateInTerminal
is now shift+cmd+k
)
{
"key": "shift+cmd+k",
"command": "cursorai.action.generateInTerminal",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "cmd+k",
"command": "-cursorai.action.generateInTerminal",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "cmd+k",
"command": "composer.startComposerPrompt",
"when": "composerIsEnabled && !terminalFocus"
},
{
"key": "cmd+k",
"command": "-composer.startComposerPrompt",
"when": "composerIsEnabled"
}
@rsngr Wow you are an angel! Thanks a lot!
<3 <3 <3
Should it? Ctrl + L is a shortcut to start a new chat. What does it have to do with the terminal? Or perhaps you meant something else?