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:

MarkerMeaning
Added lines
Modified lines
Removed lines

Colors follow the active theme; the swatches above use the default mocha.

Change Navigation#

KeyCommandAction
]ggoto-next-changeJump to the next changed hunk
[ggoto-prev-changeJump to the previous changed hunk
]Ggoto-last-changeJump to the last changed hunk
[Ggoto-first-changeJump 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:

StatusPlainMeaning
AAdded file
MModified file
DDeleted file
RRenamed 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-reset

Statusline#

When configured, the version-control statusline element displays the current git head or branch name.