turbo-editors/turbo-rustpublic Fork 0
v1.0.1
Commits
Clone
git clone https://git.rickub.com/turbo-editors/turbo-rust.git
git clone ssh://git@rickub.com/turbo-editors/turbo-rust.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

browse-a-project.md · 70 lines · 3.5 KBmarkdown Blame HistoryRaw
📦 Turbo Rust 713ea5c k33g 12h ago1# How to browse a project and open files from a tree
2
3This guide shows how to open the project tree, walk it, and open a file from it. It assumes Turbo Rust is already installed.
4
5## Open the tree
6
7Start the editor **from the project's own directory**, then press `F9`, or choose **Window ▸ Project tree**.
8
9A window opens showing the project's files, named after the directory the editor was started in:
10
11```
12╔═[x]════════════ turbo-rust ════════════2═[■]╗
13║ ▶ .turbo-rust ║
14║ ▼ internal ║
15║ ▶ app ║
16║ ▼ ui ║
17║ window.go ║
18║ .gitignore ║
19║ Cargo.toml ║
20║ main.rs ║
21╚══════════════════════════════════════════╝
22```
23
24Directories come first, then files, each group sorted. `.git` is the only thing hidden — `.turbo-rust`, `.gitignore` and the rest are files of your project, and you may well want to open them.
25
26Pressing `F9` again brings that window forward rather than opening a second tree.
27
28## Walk it
29
30| Key | Effect |
31| --- | --- |
32| `↑` `↓` | Move the highlight |
33| `→` | Open a closed directory; on anything else, step to the next row |
34| `←` | Close an open directory; on anything else, step out to the directory it is in |
35| `Enter` | Open a file, or open and close a directory |
36| `Home` `End` | First / last row |
37| `PgUp` `PgDn` | A screenful at a time |
38
39A directory is read the first time you open it, so a tree on a large project costs one listing rather than a walk of everything.
40
41## Open a file
42
43Put the highlight on it and press `Enter`, or click it twice.
44
45The file opens in a window of its own, in front of the tree. A file that is already open is brought forward rather than opened twice.
46
47## See a file that was made after you opened the tree
48
49The tree does not watch the disk. Press **`F5`** or **`Ctrl-R`** with the tree focused, and it re-reads the project — keeping open whatever you had open, and keeping the highlight on the same entry.
50
51Saving a file refreshes the tree for you, so a **File ▸ Save as** into a new name shows up without asking. A file created another way — `go build` in a terminal window, or `git checkout` — needs the refresh key.
52
53## Work with the tree and a file side by side
54
55The tree is an ordinary window, so all the window commands apply:
56
57- **Window ▸ Tile** puts the tree and your file side by side.
58- Drag its bottom-right corner to make it narrower once you know your way around.
59- `[x]` closes it; `F9` brings it back.
60
61## Variants
62
63- **You started the editor from a subdirectory.** The tree is rooted there, showing only that part of the project. Start from the project's own directory instead — the same rule `.turbo-rust/settings.toml` follows.
64- **A directory shows as open but empty.** It could not be read, most often a permissions problem. The rest of the tree is unaffected; fix the permissions and press `F5`.
65
66## See also
67
68- Every key and what the tree shows, exactly: [Project tree reference](../reference/project-tree.md)
69- Why it is a window rather than a docked panel, and why it does not watch the disk: [Project tree](../explanation/project-tree.md)
70- Colouring it: [Theme file format](../reference/themes.md)