Hi all,
I’m trying to migrate from VSCode to Cursor, but some of my keyboard shortcuts are just not working as expected (I imported all settings), especially this particular example with a condition on when the shortcut should apply.
This works in VSCode.
Any thoughts here would be appreciated.
Thanks.
Steps to Reproduce
cmd+1 will not toggle the sidebar when it has focus. It instead returns the focus to the editor.
When the sidebar is hidden, I want cmd+1 to open and focus it.
If I then hit cmd+1 again (while the sidebar has focus), I want it to close the sidebar.
If the sidebar is open, but doesn’t have focus, and I hit cmd+1, I want it to focus the sidebar.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Perfect, thank you. I see that it was the values I was using in the conditions that was the issue. I updated my esc command to utilise this too, so now I have the exact functionality I was expecting.
What’s interesting is that sideBarFocus doesn’t seem to work at all, but definitely does in VSCode, even for pretty simple commands (which could’ve been the reason I was struggling with my initial conditional command).
I’ve also seen the same issue when using conditionals such as activeViewlet == 'workbench.view.debug'. Is Cursor using different names here compared to VSCode? I don’t see these documented on the website, so I’m assuming I should be going by VSCode’s docs here. Thanks.