https://github.com/masaki39/git.yazi
A Yazi plugin to show Git file status as linemode, with staged/mixed state support
https://github.com/masaki39/git.yazi
git yazi yazi-plugin
Last synced: 2 months ago
JSON representation
A Yazi plugin to show Git file status as linemode, with staged/mixed state support
- Host: GitHub
- URL: https://github.com/masaki39/git.yazi
- Owner: masaki39
- License: mit
- Created: 2026-03-15T05:58:56.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-03-15T06:05:12.000Z (4 months ago)
- Last Synced: 2026-05-02T22:42:40.948Z (2 months ago)
- Topics: git, yazi, yazi-plugin
- Language: Lua
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git.yazi
A [Yazi](https://github.com/sxyazi/yazi) plugin to show Git file status as linemode.
Fork of [yazi-rs/plugins:git](https://github.com/yazi-rs/plugins) with:
- Staged modifications shown in green
- Mixed staged/unstaged shown as two-color indicator
## Installation
```sh
ya pkg add masaki39/git
```
## Setup
Add to `~/.config/yazi/init.lua`:
```lua
require("git"):setup()
```
Add to `~/.config/yazi/yazi.toml`:
```toml
[[plugin.prepend_fetchers]]
id = "git"
url = "*"
run = "git"
[[plugin.prepend_fetchers]]
id = "git"
url = "*/"
run = "git"
```
## Status Signs
| Sign | Color | Meaning |
|------|-------|---------|
| `M` | green | Modified (staged only) |
| `M` | red | Modified (unstaged only) |
| `MM` | green+red | Modified (staged left, unstaged right) |
| `A` | green | Added (staged) |
| `AM` | green+red | Added and then modified (staged left, unstaged right) |
| `??` | red | Untracked |
| `!` | blue | Ignored |
| `D` | red | Deleted |
| `U` | yellow | Conflict |