Skip to content

trosh/Jdiffsplit.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Jujutsu diffsplit for NeoVim

Minimalistic attempt to reproduce :G[v]d[iffsplit] from Tim Pope's vim-fugitive. If not provided, the diffed revision is @-.

:Jd[iffsplit]  [<rev>]
:Jvd[iffsplit] [<rev>]

The resulting buffer is opened in a temporary workspace containing only that file, and restored as is onto the revision upon buffer write; descendants are not rebased.

The workflow is as follows:

  • with vim-fugitive, the basic workflow is to integrate changes from the working copy into the index to commit changed progressively

  • with Jujutsu you can prepend an empty change (jj new --no-edit -B @) and then integrate content from the working copy with :Gvd @-.

Installing

Add this (somewhere):

{
	"trosh/Jdiffsplit.nvim",
	config = function()
		require("Jdiffsplit").setup()
	end,
},

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages