B.2 Shortcut Cheatsheet
Shortcut Cheatsheet¶
The following is a summary of the main Emacs Live shortcuts available within Sonic Pi. Please see Section B.1 for motivation and background.
Conventions¶
In this list, we use the following conventions (where Meta is one of Alt on Windows/Linux or Cmd on Mac):
C-ameans hold the Control key then press the a key whilst holding them both at the same time, then releasing.M-rmeans hold the Meta key and then press the r key whilst holding them both at the same time, then releasing.S-M-zmeans hold the Shift key, then the Meta key, then finally the z key all at the same time, then releasing.C-M-fmeans hold the Control key, then press Meta key, finally the f key all at the same time, then releasing.
Main Application Manipulation¶
M-r- Run codeM-s- Stop codeM-i- Toggle Help SystemM-p- Toggle PreferencesM-{- Switch buffer to the leftM-}- Switch buffer to the rightS-M-0- Switch to buffer 0S-M-1- Switch to buffer 1- ...
S-M-9- Switch to buffer 9M-+- Increase text size of current bufferM--- Decrease text size of current buffer
Selection/Copy/Paste¶
M-a- Select allM-c- Copy selection to paste bufferM-]- Copy selection to paste bufferM-x- Cut selection to paste bufferC-]- Cut selection to paste bufferC-k- Cut to the end of the lineM-v- Paste from paste buffer to editorC-y- Paste from paste buffer to editorC-SPACE- Set mark. Navigation will now manipulate highlighted region. UseC-gto escape.
Text Manipulation¶
M-m- Align all textTab- Align current line or selection (or select autocompletion)C-l- Centre editorM-/- Comment/Uncomment current line or selectionC-t- Transpose/swap charactersM-u- Convert next word (or selection) to upper case.M-l- Convert next word (or selection) to lower case.
Navigation¶
C-a- Move to beginning of lineC-e- Move to end of lineC-p- Move to previous lineC-n- Move to next lineC-f- Move forward one characterC-b- Move backward one characterM-f- Move forward one wordM-b- Move backward one wordC-M-n- Move line or selection downC-M-p- Move line or selection upS-M-u- Move up 10 linesS-M-d- Move down 10 linesM-<- Move to beginning of bufferM->- Move to end of buffer
Deletion¶
C-h- Delete previous characterC-d- Delete next character
Advanced Editor Features¶
C-i- Show docs for word under cursorM-z- UndoS-M-z- RedoC-g- EscapeS-M-f- Toggle fullscreen modeS-M-b- Toggle visibility of buttonsS-M-l- Toggle visibility of logS-M-m- Toggle between light/dark modesS-M-s- Save contents of buffer to a fileS-M-o- Load contents of buffer from a file