cursor icon indicating copy to clipboard operation
cursor copied to clipboard

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

Open garymm opened this issue 1 year ago • 3 comments

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).

garymm avatar Mar 23 '24 02:03 garymm

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"
  },

dgokcin avatar Jun 12 '24 10:06 dgokcin

It works for me with these keybindings:

    { "key": "ctrl+q","command": "aichat.newfollowupaction", "when": "editorFocus" },
    {
      "key": "ctrl+q",
      "command": "workbench.action.toggleAuxiliaryBar",
    }

Marty-W avatar Sep 21 '24 13:09 Marty-W

It works for me with these keybindings:

    { "key": "ctrl+q","command": "aichat.newfollowupaction", "when": "editorFocus" },
    {
      "key": "ctrl+q",
      "command": "workbench.action.toggleAuxiliaryBar",
    }

Cannot confirm this working. I can press CTRL+Q to open it, but I cannot close it because the chat is in focus.

IP0 avatar Sep 29 '24 01:09 IP0

it works for me ¯_(ツ)_/¯

powdaze avatar Oct 06 '24 17:10 powdaze

It works for me with these keybindings:

    { "key": "ctrl+q","command": "aichat.newfollowupaction", "when": "editorFocus" },
    {
      "key": "ctrl+q",
      "command": "workbench.action.toggleAuxiliaryBar",
    }

Cannot confirm this working. I can press CTRL+Q to open it, but I cannot close it because the chat is in focus.

This also doesn't work for me. There are multiple bindings that don't work with chat input focused (alt-i, alt-o, cmd-o). For some reason, alt-t does.

Also, it's not just toggleAuxiliaryBar that doesn't work. It seems to be a problem with the bindings themselves for me

I wrote more about this on a different issue: https://github.com/getcursor/cursor/issues/1685#issuecomment-2434293516

mjmaurer avatar Oct 24 '24 05:10 mjmaurer