Skip to content

duganchen/git-commit-browser-for-kitty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git commit browser for Kitty

demo

This is a system for using kitty to browse git commits, gitk style.

sPut git_show_diff in your PATH.

Put the following in kitty.conf:

map ctrl+shift+p>h kitten hints --program @ --type regex --regex "\b([0-9a-f]{6}|[0-9a-f]{7}|[0-9a-f]{8}|[0-9a-f]{40})\b"
map ctrl+shift+p>g kitten hints --program "launch --cwd=current git_show_diff" --type regex --regex "\b([0-9a-f]{6}|[0-9a-f]{7}|[0-9a-f]{8}|[0-9a-f]{40})\b"

Display the git log in the terminal:

log

Press Ctrl+Shift+b and then g. You'll see a number next to each commit on the screen:

hints

Enter one of the numbers to see that commit:

hints

Press "q" to close the preview window.

Or press Ctrl+Shift+b and then h. Choose a hash, and it will be copied to the clipboard.

As of now, it's at the "works on my computer" (OS X, with Delta as the git pager) stage.

About

Git commit browser for Kitty

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages