I have set the keybindings.json to enable various keybindings for terminal (such as cmd+a to move to beginning of the line) but it does not seem to be working in cursor. I have already tested on VScode and is known to work perfectly in that specific environment, however it is not working is cursor’s terminal.
// Place your key bindings in this file to override the defaults
[
{
"key": "cmd+c",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0003"
},
"when": "terminalFocus && !terminalTextSelected"
},
{
"key": "cmd+d",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0004"
},
"when": "terminalFocus && !terminalTextSelected"
},
{
"key": "cmd+a",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0001"
},
"when": "terminalFocus && !terminalTextSelected"
},
{
"key": "cmd+r",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0012"
},
"when": "terminalFocus && !terminalTextSelected"
},
{
"key": "cmd+w",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0017"
},
"when": "terminalFocus && !terminalTextSelected"
},
{
"key": "cmd+e",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0005"
},
"when": "terminalFocus && !terminalTextSelected"
},
{
"key": "cmd+n",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u000E"
},
"when": "terminalFocus && !terminalTextSelected"
},
{
"key": "cmd+k",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u000B"
},
"when": "terminalFocus && !terminalTextSelected"
}
]
Could someone tell me what could be wrong?
Here’s the details of my cursor installation:
Version: 0.33.4
VSCode Version: 1.86.2
Commit: 2dd5b2855ac68f3a3d3babee87d22b399a9db7d0
Date: 2024-05-11T02:05:08.197Z
Electron: 27.2.3
ElectronBuildId: undefined
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin x64 21.6.0