Skip to content

ryutaro-asada/partial-diff.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

partial-diff.nvim

This repository contains a set of commands for Neovim that allow you to perform partial diffs on your code.

demo

partial-diff-demo.mov

Commands

  • PartialDiffA: Marks a range of lines as the first part of the diff.
  • PartialDiffB: Marks a range of lines as the second part of the diff.
  • PartialDiffDelete: Deletes the current partial diff.

Usage

Follow the steps below to use these commands:

  1. Select the range of lines with visual mode.
  2. Type :PartialDiffA.
  3. Select another range of lines with visual mode.
  4. Type :PartialDiffB.
  5. View the diff.
:'<,'>PartialDiffA
:'<,'>PartialDiffB

To delete the current diff, use the PartialDiffDelete command.

Installation

Using lazy.nvim

  {
    "ryutaro-asada/partial-diff.nvim",
  },

Contributing

If you have any suggestions or improvements, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published