# Keyboard Shortcuts

This is supposed to be a complete list of keyboard shortcuts. Note that some of these may work only in certain contexts (e.g. in tree pane or note editor).

It is also possible to configure most keyboard shortcuts in Options -> Keyboard shortcuts. Using `global:` prefix, you can assign a shortcut which will work even without Trilium being in focus (requires app restart to take effect).

## Note navigation

- `↑`, `↓` - go up/down in the list of notes, `Ctrl` + `Shift` + `↑` and `Ctrl` + `Shift` + `↓` work also from editor
- `←`, `→` - collapse/expand node
- `Alt` + `←`, `Alt` + `→` - go back / forwards in the history
- `Ctrl` + `J` - show "Jump to" dialog
- `Ctrl` + `.` - scroll to current note (useful when you scroll away from your note or your focus is currently in the editor)
- `Backspace` - jumps to parent note
- `Alt` + `C` - collapse whole note tree
- `Alt` + `-` (alt with minus sign) - collapse subtree (if some subtree takes too much space on tree pane you can collapse it)
- you can define a label `#keyboardShortcut` with e.g. value `Ctrl` + `I` . Pressing this keyboard combination will then bring you to the note on which it is defined. Note that Trilium must be reloaded/restarted (`Ctrl` + `R` ) for changes to be in effect.

See demo of some of these features in note navigation.

## Tabs

- `Ctrl` + `🖱 Left click` - (or middle mouse click) on note link opens note in a new tab

Only in desktop (electron build):

- `Ctrl` + `T` - opens empty tab
- `Ctrl` + `W` - closes active tab
- `Ctrl` + `Tab` - activates next tab
- `Ctrl` + `Shift` + `Tab` - activates previous tab

## Creating notes

- `CTRL+O` - creates new note after the current note
- `CTRL+P` - creates new sub-note into current note
- `F2` - edit prefix of current note clone

## Moving / cloning notes

- `Ctrl` + `↑` , Ctrl + `↓` - move note up/down in the note list
- `Ctrl` + `←` - move note up in the note tree
- `Ctrl`+`→` - move note down in the note tree
- `Shift`+`↑`, `Shift``+``↓` - multi-select note above/below
- `Ctrl`+`A` - select all notes in the current level
- `Shift`+`🖱 Left click` - multi select note which you clicked on
- `Ctrl`+`C` - copies current note (or current selection) into clipboard (used for cloning
- `Ctrl`+`X` - cuts current (or current selection) note into clipboard (used for moving notes)
- `Ctrl`+`V` - pastes note(s) as sub-note into current note (which is either move or clone depending on whether it was copied or cut into clipboard)
- `Del` - delete note / sub-tree

## Editing notes

Trilium uses CKEditor 5 for the text notes and CodeMirror 5 for code notes. Check the documentation of these projects to see all their built-in keyboard shortcuts.

- `Alt`-`F10` - bring up inline formatting toolbar (arrow keys `←`,`→` to navigate, `Enter` to apply)
- `Alt`-`F10` - again to bring up block formatting toolbar
- `Enter` in tree pane switches from tree pane into note title. Enter from note title switches focus to text editor. `Ctrl`+`.` switches back from editor to tree pane.
- `Ctrl`+`K` - create / edit external link
- `Ctrl`+`L` - create internal (note) link
- `Alt`+`T` - inserts current date and time at caret position
- `Ctrl`+`.` - jump away from the editor to tree pane and scroll to current note

## Runtime shortcuts

These are hooked in Electron to be similar to native browser keyboard shortcuts.

- `F5`, `Ctrl`-`R` - reloads Trilium front-end
- `Ctrl`+`Shift`+`I` - show developer tools
- `Ctrl`+`F` - show search dialog
- `Ctrl`+`-` - zoom out
- `Ctrl`+`=` - zoom in

## Other

- `Alt`+`O` - show SQL console (use only if you know what you're doing)
- `Alt`+`M` - distraction-free mode - display only note editor, everything else is hidden
- `F11` - toggle full screen
- `Ctrl` + `S` - toggle search form in tree pane
- `Alt` +`A` - show note attributes dialog