In Trilium, tabs allow easy switching between notes.

## Layout

Depending on the Vertical and horizontal layout:

- For the vertical layout, the tabs will be placed at the top but to the right of the Note Tree.
- For the horizontal layout, the tabs will be placed at the top in full-width, above the note tree, allowing for more tabs to be comfortably displayed.

## Interaction

- To create a new tab, press the button that is to the right of the last tab.
- To close a tab, press the corresponding button.
- For multitasking, tabs can be used alongside Split View. Each tab can have one or more notes, displayed horizontally.
- Tabs can be reordered by drag-and-dropping it into a new position.
- An existing tab can be displayed in a new window by dragging the tab upwards or downwards. It is not possible to combine tabs back into another window.

## Keyboard interaction

Since tabs are a commonly used feature, there are multiple keyboard shortcuts that can be used:

- `Ctrl`+`T` to open a new tab.
- `Ctrl`+`W` to close the current tab.
- `Ctrl`+`Shift`+`T` to reopen the last closed tab.
- `Ctrl`+`Tab` and `Ctrl`+`Shift`+`Tab` to go to the next or previous tab.
- `Ctrl`+`1`, `Ctrl`+`2`, up to `Ctrl`+`9` to activate the first, second and up to ninth tab.
- There is also a shortcut to go to the last tab, but it is not assigned a key by default.

## Mobile

Tabs are also supported on the Mobile Frontend.

Since v0.102.0, the tabs are displayed by pressing the dedicated tab switcher button in the Launch Bar. In this view the tabs are laid out on a grid with a preview of the note content.

The context menu button at the top-right of the popup allows creating a new tab, reopening the last closed tab and closing all the tabs.

Split Views are also indicated in the tab switcher, with two titles displayed in a tab.

Versions prior to v0.102.0 also supported tabs, but they were displayed directly above the Launch Bar. The decision to use a more mobile-like tab switcher was taken because the original tab bar could not support many tabs at once and the new design better aligns with how mobile applications handle tabs.