Open marcora opened 3 years ago
Given the similarities between Mercury and Sonic Pi, perhaps offering a similar scheme would help transitioning users from one system to the other.
Thanks for this, I have not looked at all the keybinding options from Sonic Pi yet, also not sure if I want to have the same keybindings, but did include the option to jump words in the latest commit 07cf633b98e00676ca85a9651d76f4dfe7530029 with alt-j
and alt-l
. But having the option to switch between different shortkey "presets" would be interesting to look at!
Deleting characters (as opposite to backspace with delete
key) is now included in 09f080c54269df439596b4c3c4dff053ad1f61a1
It would be great to have more actions available for binding to keyboard shortcuts. Also, it would be nice to have a drop down to select among a few common keybinding schemes, e.g., Vim-like or Emacs/Bash-like.
For the latter, as an example, selecting the "Emacs/Bash-like" scheme from the dropdown would set the following actions to the following keyboard shortcuts:
CTRL+A / CTRL+E | Go to the start/end of the line CTRL+U / CTRL+K | Delete from cursor to the start/end of the line CTRL+W / ALT+D | Delete from cursor to start/end of word (whole word if at the boundary) CTRL+X | Cut whole line and add to clipboard CTRL+C | Copy whole line to clipboard CTRL-V | Paste (insert) whole line from clipboard CTRL-Y | Paste (replace) whole line from clipboard CTRL+F / CTRL+B | Move forward/backward one character META+F / META+B Move forward/backward one word (or go to start of word the cursor is currently on) CTRL+D / CTRL+H | Delete character after/before under cursor CTRL+N / CTRL+P | Move to next/previous line CTRL+L | Delete everything
WIth META being Apple key on MacOS or Meta key on Windows/Linux