Skip to content

masaki39/git.yazi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git.yazi

A Yazi plugin to show Git file status as linemode.

Fork of yazi-rs/plugins:git with:

  • Staged modifications shown in green
  • Mixed staged/unstaged shown as two-color indicator

Installation

ya pkg add masaki39/git

Setup

Add to ~/.config/yazi/init.lua:

require("git"):setup()

Add to ~/.config/yazi/yazi.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

About

A Yazi plugin to show Git file status as linemode, with staged/mixed state support

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages