Skip to content

A yazi plugin to cd to the root dir of a git repository.

License

Notifications You must be signed in to change notification settings

ayvi-0001/git-cd-root-dir.yazi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-cd-root-dir.yazi

A yazi plugin to cd to the root dir of a git repository.

Install

Run one of the following commands.

# ya package manager
ya pack -a ayvi-0001/git-cd-root-dir

# Linux
git clone https://github.com/ayvi-0001/git-cd-root-dir.yazi.git ~/.config/yazi/plugins/git-cd-root-dir.yazi

# Windows
git clone https://github.com/ayvi-0001/git-cd-root-dir.yazi.git %AppData%\yazi\config\plugins\git-cd-root-dir.yazi

Usage

Add the following keybind to your keymap.toml.

# as an inline-table
[manager]
prepend_keymap = [
  { on = ["g", "r"], run = "plugin git-cd-root-dir", desc = "cd to git repo root directory" }
]

# or as an array of tables
[[manager.prepend_keymap]]
on = ["g", "r"]
run = "plugin git-cd-root-dir"
desc = "cd to git repo root directory"

About

A yazi plugin to cd to the root dir of a git repository.

Topics

Resources

License

Stars

Watchers

Forks

Languages