An open API service indexing awesome lists of open source software.

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

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 |