Chunk Keybinding Comparison

July 15, 2026 · View on GitHub

Raven's chunk keybindings are aligned with the Quarto VS Code extension, which provides the most coherent separation of execution (letter keys) and navigation (PageDown/PageUp). This page documents how Raven's bindings compare to the other R tools.

Design principles

  1. Cmd/Ctrl+Alt+P / Cmd/Ctrl+Alt+N = execution pair — run the previous/next single chunk, matching Quarto and RStudio.
  2. Shift escalates — adding Shift runs all chunks above/below rather than a single neighbor, matching Quarto.
  3. PageDown/PageUp = navigation — cursor movement without execution, matching Quarto and RStudio's section navigation.
  4. Enter variants = current chunk — run or run-and-move the chunk at the cursor.

Raven keybindings

MacWindows/LinuxAction
Cmd+EnterCtrl+EnterRun Line or Selection
Cmd+Shift+EnterCtrl+Shift+EnterSource File (.R) / Knit Preview (.Rmd) / Quarto Preview (.qmd)
Cmd+Alt+EnterCtrl+Alt+EnterRun Current Chunk
Cmd+Alt+Shift+EnterCtrl+Alt+Shift+EnterRun Current Chunk and Move
Cmd+Alt+PCtrl+Alt+PRun Previous Chunk
Cmd+Alt+NCtrl+Alt+NRun Next Chunk
Cmd+Alt+Shift+PCtrl+Alt+Shift+PRun Above Chunks (all chunks above cursor)
Cmd+Alt+Shift+NCtrl+Alt+Shift+NRun Below Chunks (all chunks below cursor)
Cmd+PageDownCtrl+PageDownGo to Next Chunk
Cmd+PageUpCtrl+PageUpGo to Previous Chunk

Cross-tool comparison

Execution shortcuts

Shortcut (Mac)RavenQuartoRStudioREditorSupport
Cmd+EnterRun Line or SelectionRun Current CodeRun current line/selectionRun Selection
Cmd+Shift+EnterSource File (.R) / Knit Preview (.Rmd) / Quarto Preview (.qmd)Run Current CellSource document (with echo)Run Current Chunk (.Rmd) / Source with Echo (.R)
Cmd+Alt+EnterRun Current ChunkSend line to terminal
Cmd+Alt+PRun Previous ChunkRun Previous CellRe-run previous regionRun Above Chunks
Cmd+Alt+NRun Next ChunkRun Next CellRun next Sweave/Rmd chunk(unbound)
Cmd+Alt+Shift+PRun Above ChunksRun Cells AboveRun previous Sweave/Rmd code(unbound)
Cmd+Alt+Shift+NRun Below ChunksRun Cells Below(unbound)
Cmd+Alt+CRun current Sweave/Rmd chunk
Cmd+Alt+RRun All CellsRun current document
Shortcut (Mac)RavenQuartoRStudioREditorSupport
Cmd+PageDownGo to Next ChunkGo to Next CellNext section(unbound)
Cmd+PageUpGo to Previous ChunkGo to Previous CellPrevious section(unbound)

REditorSupport has r.goToNextChunk and r.goToPreviousChunk commands but ships no default keybinding for them.

Key differences from each tool

vs. Quarto — Nearly identical. Raven uses Cmd+Alt+Enter for Run Current Chunk where Quarto uses Cmd+Shift+Enter; Raven adds Cmd+Alt+Shift+Enter for Run Current Chunk and Move. The P/N/Shift+P/Shift+N/PageDown/PageUp mappings match exactly.

vs. RStudio — RStudio uses Cmd+Alt+P for "re-run previous region" (which re-runs whatever you last ran, not necessarily a chunk) and Cmd+Alt+N for "run next chunk." The semantics are close but not identical. RStudio uses Cmd+Alt+C for run current chunk and Cmd+PageDown/Cmd+PageUp for section navigation (which includes chunks). RStudio has no "run below" shortcut.

vs. REditorSupport — REditorSupport only ships one chunk keybinding by default: Cmd+Alt+P = Run Above Chunks (all above, not single previous). All other chunk commands exist but are unbound. Users migrating from REditorSupport who relied on Cmd+Alt+P for "run all above" should use Cmd+Alt+Shift+P in Raven.

vs. Positron — Positron does not ship chunk-specific keybindings. Its RStudio keymap mode adds general RStudio shortcuts but not the chunk execution keys. Positron's built-in shortcuts focus on Cmd+Enter (run selection/statement) and Cmd+Shift+Enter (source file).

Migration notes

If you're coming from REditorSupport and used Cmd+Alt+P to run all chunks above the cursor, that action is now at Cmd+Alt+Shift+P. The unshifted Cmd+Alt+P runs only the single previous chunk, matching Quarto and RStudio.

If you previously used Cmd+Alt+N in Raven for chunk navigation, that key now runs the next chunk. Use Cmd+PageDown / Cmd+PageUp for navigation instead.