The Spark Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.
####MacOS modifier keys
⌘: Command | ⌃: Control |
⌥: Option | ⇧: Shift |
↩: Return | ␣: Space |
⇥: Tab |
####Command Mode (press Esc to enable)
↩: | enter edit mode | ⇧↩: | run cell, select below |
⌃↩: | run cell | ⌥↩: | run cell, insert below |
Y: | to code | M: | to markdown |
R: | to raw | 1: | to heading 1 |
2: | to heading 2 | 3: | to heading 3 |
4: | to heading 4 | 5: | to heading 5 |
6: | to heading 6 | ↑: | select previous cell |
K: | select previous cell | ↓: | select next cell |
J: | select next cell | ⌃K: | move selected cell up |
⌃J: | move selected cell down | A: | insert cell before |
B: | insert cell after | X: | cut selected cell |
C: | copy selected cell | ⇧V: | paste cell before |
V: | paste cell after | Z: | undo last cell deletion |
D,D: | delete cell | ⇧M: | merge cell below |
S: | Save and Checkpoint | ⌘S: | Save and Checkpoint |
L: | toggle line numbers | ␣: | scroll down |
I: | toggle input | ⇧: | ignore |
⇧␣: | scroll up | T: | toggle output |
O: | toggle output | Esc: | close pager |
Q: | close pager | ⇧O: | toggle output scrolling |
H: | show keyboard shortcut help dialog | 0,0: | restart kernel |
####Edit Mode (press Enter to enable)
⇥: | code completion or indent | ⇧⇥: | tooltip |
⌘]: | indent | ⌘[: | dedent |
⌘A: | select all | ⌘Z: | undo |
⌘⇧Z: | redo | ⌘Y: | redo |
⌘↑: | go to cell start | ⌘↓: | go to cell end |
⌥←: | go one word left | ⌥→: | go one word right |
⌥⌫: | del word before | ⌥⌦: | del word after |
Esc: | command mode | ⇧: | ignore |
⌃↩: | run cell | ⌥↩: | run cell, insert below |
⌘S: | Save and Checkpoint | ⇧↩: | run cell, select below |
⌃M: | command mode | ↑: | move cursor up or previous cell |
↓: | move cursor down or next cell | ⌃⇧: | split cell |
⌃⇧subtract: | split cell |