Version Control#
toe has built-in Git support for changed files and per-line diffs.
Diff Gutters#
When a file is tracked by git, toe shows line changes in the gutter:
| Marker | Meaning |
|---|---|
| ▍ | Added lines |
| ▍ | Modified lines |
| ▔ | Removed lines |
Colors follow the active theme; the swatches above use the default mocha.
Change Navigation#
| Key | Command | Action |
|---|---|---|
]g | goto-next-change | Jump to the next changed hunk |
[g | goto-prev-change | Jump to the previous changed hunk |
]G | goto-last-change | Jump to the last changed hunk |
[G | goto-first-change | Jump to the first changed hunk |
Changed Files#
Use Space+g or :changed-file-picker to list changed workspace files and preview their diffs.
Each entry carries its change status. With nerd-fonts disabled, the short label in the second column is shown instead of the glyph:
| Status | Plain | Meaning |
|---|---|---|
A | Added file | |
M | Modified file | |
D | Deleted file | |
R | Renamed file | |
? | Untracked file | |
! | Conflicted file |
Resetting Changes#
Use :reset-diff-change to reset the changed hunk under each selection back to the git base version.
Aliases:
:reset-diff-change
:diff-resetStatusline#
When configured, the version-control statusline element displays the current git head or branch name.