Keyboard Shortcuts & Text Transformations

General

  • Press Cmd/Ctrl Shift P to open the editor’s commands menu.
  • Press Cmd/Ctrl Z to undo the previous action.
  • Press Cmd/Ctrl Shift Z to redo the previously undone action.

Text formatting and inline nodes

  • Press Ctrl/Cmd B to make the currently selected text bold.
  • Press Ctrl/Cmd I to make the currently selected text italic.
  • Press Ctrl/Cmd E to insert an inline node (e.g. an inline formula at the current cursor position.

Code Cells

  • Press Ctrl/Cmd E to insert the path to an uploaded file or a file that has been written to /results.
  • Press Tab to autocomplete the code next to the cursor.
  • Press Shift Tab to show docs for the code next to the cursor.

Code execution

  • Press Cmd/Ctrl R to run the current code cell.
  • Press Shift Enter to run the current code cell and jump into the next code cell.
  • Press Cmd/Ctrl Shift Enter to run all cells using the current cell’s runtime.
  • Press Cmd/Ctrl Alt Enter to run all code cells.
  • Press Cmd/Ctrl Shift R to restart the current code cell’s runtime. This will keep the runtime’s file system state.
  • Press Cmd/Ctrl Shift K to reset the current code cell’s runtime and its process and file system state.

Text Transformations

  • Type *text* to make it bold.
  • Type _text_ to make it italic.
  • Type +text+ to make it monospace.
  • Type $any LaTeX code here$ to turn it into an .

At the beginning of an empty paragraph:

  • Press Enter to show a list of all node kinds you can insert.
  • Type *, - or + followed by a space to create a bulleted list.
  • Type 1. followed by a space to create a numbered list.
  • Type *[] followed by a space to create a todo list.
  • Type # followed by a space to create a new section.
  • Type ## followed by a space to create a new sub-section.
  • Type ```python or ```py followed by a space to create a new Python code cell. You can replace python with any language supported by Nextjournal.