Skip to content

larry-oates/open-git-remote.yazi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

open-git-remote.yazi

Plugin for Yazi to open git repos's remote url quickly with a shortcut.
Jump to the code host page from yazi!

Inspired by Sylvan Franklin

Dependencies

  • Git
  • A web browser
  • A browser opener:
    • open (macOS)
    • xdg-open (Linux)
    • start (Windows/Git Bash)
    • wslview (WSL)

Installation

Using ya pkg

 ya pkg add larry-oates/open-git-remote

Manual

Linux/macOS

git clone https://github.com/larry-oates/open-git-remote.yazi.git ~/.config/yazi/plugins/open-git-remote.yazi

Windows

git clone https://github.com/larry-oates/open-git-remote.yazi.git %AppData%\yazi\config\plugins\open-git-remote.yazi

Configuration

add this to your keymap.toml file:

[[mgr.prepend_keymap]]
on   = [ "g", "l" ]
run  = "plugin open-git-remote"
desc = "open git remote url"

I use g then l for "Git Link" but you can customize the keybinding however you like. Please refer to the keymap.toml documentation

About

A yazi plugin that opens, in a browser, the git remote for the currently open git repo

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages