TranquilMarmot / YarnLoom

Visual Studio Code extension for editing YarnSpinner files
MIT License
18 stars 2 forks source link

Add keyboard shortcuts #7

Closed TranquilMarmot closed 4 years ago

TranquilMarmot commented 4 years ago

This adds Ctrl + F (focus on search bar) and Shift + + (add new node) keyboard shortcuts.

Initially, I had also wanted to add Alt + C/R to enable/disable case sensitivity/regex (along with T/B/G for title/body/tag search) but there's currently no way for the extension webview to grab keys without sending them to the editor (which causes it to open menus in some cases). I also ran into some issues with state management with the react-hotkeys-hook hook in doing this 🤔