pomdtr / sunbeam

Elevate Your Command Line Experience.
https://sunbeam.sh
MIT License
272 stars 12 forks source link

Custom Keybindings #91

Open b-per opened 6 months ago

b-per commented 6 months ago

For some reason opt + enter on Mac doesn't work in the Warp Terminal while it works in the VSCode terminal and in iTerm2.

In Warp, it adds the value enter to the field. I have the config set to consider Left option key as Meta but it still doesn't work.

I don't know if it can be fixed on the sunbeam side and/or Warp side but another option would be to allow custom key bindings to validate forms.

pomdtr commented 6 months ago

Yep there is something really strange with the handling of the alt+enter shortcut in warp.

Custom keybinding (for default shortcut) is a feature I would like to support at some point.

smetroid commented 3 months ago

Not sure if it's relevant, but as someone who comes from the UNIX world, and use Vim and Vim shortcuts for everything I do, I found a tool that allows me to change the keybindings globally or per application. The idea is to leave the application default keybindings and shortcuts as they are and use keymapper to change the shortcuts for specific applications. This will allow you to modify and update one config file to be able to manipulate any application defined in the config.

Here is a link to keymapper, which is probably one of the best tools I've found that has made my life a lot lot better, from an efficiency/productivity point of view. https://github.com/houmain/keymapper

And John Lindquist (creator of script kit) has a really good video on why you may want to leave shortcuts for the apps as they are and use something like keymapper or similar to change the shortcuts per app. https://egghead.io/talks/egghead-save-your-hands-and-save-your-time-rethinking-how-to-use-a-keyboard