Keyboard Shortcuts & Text Transformations

General

  • Cmd/Ctrl J: open the Editor's “Commands” palette.

  • Cmd/Ctrl Z: undo the previous action.

  • Cmd/Ctrl Shift Z: redo the previously undone action.

  • Cmd Shift O: open the options menu next to the block you're editing.

  • Enter at the beginning of a paragraph: open the “Insert” menu to see a list of all the content types you can insert.

Text formatting

  • Ctrl/Cmd B: make the currently selected text bold.

  • Ctrl/Cmd I: make the currently selected text italic.

  • Ctrl `: make the currently selected text code.

Inline content

  • Ctrl/Cmd E: insert inline content (e.g. a LaTeX formula) at the current cursor position.

  • $any LaTeX code here$: turn it into an inline_formula not implemented.

Code execution

  • Cmd/Ctrl Enter: run the current code cell.

  • Shift Enter: run the current code cell and focus on the next code cell.

  • Cmd/Ctrl Shift Enter: run all cells using the current cell’s runtime.

  • Cmd/Ctrl Alt Enter: run all code cells.

  • Alt Shift R: restart the current code cell’s runtime. This will keep the runtime’s file system state.

  • Cmd/Ctrl Shift K: reset the current code cell’s runtime, and its process and file system state.

In code cells

  • Ctrl/Cmd E: insert the path to a file, or a file that has been written to the /results folder.

  • Tab: autocomplete the code next to the cursor.

  • Shift Tab: show docs for the code next to the cursor.

Text transformations

Markdown cheat sheet

  • Type *text* to make it bold.

  • Type _text_ to make it italic.

At the beginning of an empty paragraph:

  • *, - or + followed by a Space: add a bulleted list.

  • 1. followed by a Space: add a numbered list.

  • *[] followed by a Space: add a todo list.

  • # followed by a Space: add a level 1 heading.

  • ## followed by a Space: add a level 2 heading.

  • ### followed by a Space: add a level 3 heading.

  • ```[language-name] followed by a Space: add a code cell for a specific language. language-name is any of the languages supported by Nextjournal, namely Python, R, Julia, Clojure, Bash, and Agda. If you only type ``` followed by a Space , a new code cell of the most recently used language will be added, or, if there's no language used yet, a Julia code cell.