Skip to content

usfbih8u/micro-diff-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

micro-diff-preview

Display a diff gutter preview in a tooltip.

This plugin functions only with files tracked by Git.

โ“ How to use it

With the cursor positioned over a marked line in the diff gutter, execute the command (Ctrl+E) diff-preview to open a tooltip displaying the diff preview.

๐Ÿ”— Bindings

You can use these bindings to navigate the diff while opening the previews in a tooltip.

"Alt-(": "DiffPrevious&command:diff-preview",
"Alt-)": "DiffNext&command:diff-preview",

๐Ÿ“ฆ Installation

Copy/clone this repository directly to your .config/micro/plug.

โš ๏ธ Do NOT change the name of the plugin directory. It is used as a prefix to avoid path collisions in package.path when requiring modules.

In Linux, you can copy/clone the repo anywhere and create a symlink inside .config/micro/plug using the ENABLE_FOR_MICRO.sh script.