# Tabs and Documents

*Lx* keeps temporary previews separate from files you chose to keep open.

## The first Untitled tab

Starting *Lx* without a file creates an Untitled document.

If it is still empty and unchanged, opening your first real file can reuse it. Starting *Lx* with one or more files does not create an extra Untitled tab.

## Temporary Browser previews

Arrow keys and single-clicks in the Browser reuse one clean preview tab.

The preview becomes a permanent tab when you:

- Press Enter in the Browser
- Double-click the file in the Browser
- Edit the document

Moving to another file only replaces a clean temporary preview.

## Files that stay open

These actions open a permanent tab:

- Open File
- Drag and drop
- A command-line filename
- Enter or double-click in the Browser

Permanent document tabs have a quiet mark along the top.

## Close a tab

- Press **Ctrl+W**.
- Double-click the tab.

Both use the normal safe close path, including the unsaved-changes check.

## Move between tabs

| Shortcut | Action |
| --- | --- |
| Ctrl+Tab | Next tab |
| Ctrl+Shift+Tab | Previous tab |
| Ctrl+Page Up | Move the active tab left |
| Ctrl+Page Down | Move the active tab right |

## Edited previews

Once you change a temporary preview, it is kept like any other open document. Browser movement will not replace it.

If you return to a file that is already open, *Lx* focuses its existing tab instead of opening another copy.

See [File Browser](file_browser.md) for Browser navigation.
