Files
2026-10-05 11:10:12 +02:00

65 lines
2.7 KiB
Markdown

# Go to file
Go to file is the **Recent files** list: a small card at the top of the window with the files you opened in this project, newest first. It opens from the file view with `Cmd+Up` or `Cmd+Down`.
[Guide index](index.md) · Related: [Search](search.md), [File view](file-view.md)
## At a glance
```text
+------------------------------------------------------+
| (1) Recent files (2) 12 files . Cmd+Dn Cmd+Up Ent |
+------------------------------------------------------+
| (3) [php] app.php |
| src/ |
| (4)>[php] Handler.php * |
| src/Http/ |
| [md] README.md |
+------------------------------------------------------+
```
1. **Header**: the title of the card.
2. **Count and keys**: how many files the list holds, and the keys to use.
3. **Row**: a type badge, the file name, and its folder below it.
4. **Selected row**: highlighted. An amber dot marks a file with uncommitted git changes.
## Features
### What the list holds
- Every file you open goes to the top of the list. A file appears only once.
- The list keeps up to 100 files per project, and is remembered across launches.
- Renamed files follow their new name. Deleted files drop out.
- With no history yet, the card says "No files opened yet".
### Opening the list
- Click in the [file view](file-view.md) so it has the focus, then press `Cmd+Down` or `Cmd+Up`.
- `Cmd+Down` starts on the previous file (the second row), so one `Cmd+Down` and `Enter` jumps back to it.
- `Cmd+Up` starts on the current file (the first row).
- The keys only open the list when there is at least one file in it.
### Moving and opening
- `Up`/`Down` or `Cmd+Up`/`Cmd+Down` move the selection. It stops at the first and last row.
- Hover a row to select it. Click a row to open it.
- `Enter` opens the selected file and closes the card.
- `Esc`, or a click outside the card, closes it.
### No typing
- This list has no search field and no fuzzy matching. To find a file by name, use the **Files** column of [Search](search.md) (`Cmd+F`).
## Keyboard
| Keys | Action |
|---|---|
| `Cmd+Down` (in the file view) | Open the list on the previous file |
| `Cmd+Up` (in the file view) | Open the list on the current file |
| `Up` / `Down`, `Cmd+Up` / `Cmd+Down` | Move the selection |
| `Enter` | Open the selected file |
| `Esc` | Close |
## Related
- [Search](search.md): fuzzy file-name search with `Cmd+F`.
- [File view](file-view.md): where the file opens.
- [Explorer](explorer.md): the opened file is selected in the tree.
- [Keyboard shortcuts](keyboard-shortcuts.md): every key in one list.