Files
helder/docs/guide/status-bar.md
T
2026-10-05 11:10:12 +02:00

52 lines
2.4 KiB
Markdown

# Status bar
The status bar is the thin 28-point strip along the bottom of a project window. It shows git totals on the left and facts about the open file on the right.
[Guide index](index.md) · Related: [Window layout](layout.md), [Git](git.md), [File view](file-view.md)
## At a glance
```text
+----------------------------------------------------------------------------+
| <> main +50 -38 1 staged . 2 unstaged app/User.php . Ln 3, Col 9 . |
| (1) (2) (3) (4) (5) (6) |
| |
| UTF-8 . LF . PHP |
| (7) (8) (9) |
+----------------------------------------------------------------------------+
```
The bar is one row in the app. It is drawn on two rows here to fit the page.
1. **Branch**: the current git branch, in amber, after a branch symbol.
2. **Lines added**: the total added lines in the working tree, in teal.
3. **Lines removed**: the total removed lines, in amber-deep.
4. **Staged and unstaged**: how many changes are staged and how many are not.
5. **File path**: the project-relative path of the open file.
6. **Cursor position**: the line and column of the cursor.
7. **Encoding**: always `UTF-8`.
8. **Line ending**: always `LF`.
9. **Language**: the language of the open file, for example `PHP` or `Markdown`.
## Features
### Git summary (left)
- The branch, the added and removed line totals, and the staged and unstaged counts.
- These follow the [Git](git.md) column. They update when you stage, unstage, commit, or when files change on disk.
### File facts (right)
- The path, the cursor position and the language appear only while a file is open.
- The path cuts off at the start when it is long, so the file name stays visible. It never takes more than about half the window.
- The cursor position reads `Ln 1, Col 1` until you move the cursor in the file.
- `UTF-8` and `LF` are always shown, with or without a file.
### Display only
Nothing in the status bar is clickable. It only shows information.
## Related
- [Git](git.md): where the branch and change counts come from.
- [File view](file-view.md): the file whose path, position and language are shown.
- [Title bar](title-bar.md): shows the project, branch and file path at the top.
- [Window layout](layout.md): where the status bar sits in the window.