Skip to content

Inspired by the official `:git show-diff<ret>` tool, but updates the flags non-blockingly and more extensible.

License

Notifications You must be signed in to change notification settings

harryoooooooooo/diff.kak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

diff.kak

diff.kak is inspired by the official :git show-diff<ret> tool, but it can be extended to more kinds of VCS easily. Also it updates the flags non-blockingly, which is helpful when you're working on slow storage or VCS.

Installation

Add this to the kakrc:

plug "harryoooooooooo/diff.kak"

Then reload the configuration file or restart Kakoune and run :plug-install.

Without plugin manager

This plugin has only one source file. sourceing it in kakrc just works:

source "/path/to/diff.kak/rc/diff.kak"

Usage

Add diff-enable-auto-detect in kakrc, then done. By default it detects if a buffer links to a file under Git or Mercurial control, and enable the automatic flags update. The automatic flags update happens on each write to the buffer.

As like the official :git command, the plugin provides :diff-jump [next|prev] to jump between the hunks, and :diff to show a common diff output in a scratch buffer.

Other than Git and Mercurial, there is also :diff-file <file_name> command for tracing the diff of current buffer and a specific file.

Referece the doc of options diff_command, diff_command_readable, and diff_need_cd, to add support of other VCS.

About

Inspired by the official `:git show-diff<ret>` tool, but updates the flags non-blockingly and more extensible.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published