getcursor / cursor

The AI Code Editor
https://cursor.com
20.63k stars 1.38k forks source link

toggleAuxiliaryBar (hide chat pane) keyboard shortcuts don't work when the chat input has focus #1350

Open garymm opened 3 months ago

garymm commented 3 months ago

There seems to currently be no way to hide the chat pane when the chat input field has focus. As described here: https://github.com/getcursor/cursor/issues/833#issuecomment-1772606399

I would like something like this to work:

  {
    "key": "cmd+l",
    "command": "workbench.action.toggleAuxiliaryBar",
    "when": "auxiliaryBarFocus"
  }

Interestingly the default shortcut for this ("cmd+alt+b") seems to work even when the chat input has focus. Maybe the "when" condition is wrong? I tried to figure it out using the "inspect context keys" feature but that doesn't seem to work at all (don't print anything to the console).

dgokcin commented 1 month ago

I have the same issue. I and it is really interesting to see that it works the way I want it to work with the default shortcut. As soon as I want to change it to command shift b, it stops working. Have you been able to find a workaround? @garymm

also @jakobFNF any updates for the issue you mentioned in the linked comment above about addressing shortcuts getting blocked when focus on the chat window?

  {
    "key": "shift+cmd+b",
    "command": "workbench.action.toggleAuxiliaryBar"
  },