Go to previous line: the shortcut in 4 apps
On Mac it is usually Ctrl+P (2 of 4 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux |
|---|---|---|---|
| EmacsPrevious line | CtrlP | CtrlP | CtrlP |
| JupyterLabSelect the cell above · Command mode | ↑orK | ↑orK | ↑orK |
| macOSMove up one line | CtrlP | — | — |
| VimMove up · Normal mode | K | K | K |
How the apps compare
- Mac: Ctrl+P in Emacs and macOS; ↑ in JupyterLab; K in Vim.
- Windows: Ctrl+P in Emacs; ↑ in JupyterLab; K in Vim.
- Linux: Ctrl+P in Emacs; ↑ in JupyterLab; K in Vim.
Where and when it works
- JupyterLab (Command mode).
- Vim (Normal mode).
Learn it by pressing it: Emacs shortcuts practice, JupyterLab shortcuts practice, macOS shortcuts practice or Vim shortcuts practice.