Skip to content

yasutakatou/mdiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mdiff

mdiff is multi tab diff tool on cli, and enable to apply differrece to target file!

demo

demo1

solution

when you compare file on terminal , you use diff command often.
diff command usualy is compare two differece of file.
If you want to compare many file, you use another tool without use terminal. Isn't it?
For example, you copy and paste to your diff tool on windows. Isn't it troublesome?
this tool is solution for you.

features

  • compare different on multi tab
  • difference text is colored
  • can search words
  • can apply difference to target file
  • multi platform support by golang
  • sjis support

support linux and windows. and rasbian(arm)!

demo2

install

If you want to put it under the path, you can use the following.

go get github.com/yasutakatou/mdiff

If you want to create a binary and copy it yourself, use the following.

git clone https://github.com/yasutakatou/mdiff
cd mdiff
go build mdiff.go

or download binary from release page.
save binary file, copy to entryed execute path directory.

uninstall

delete that binary.

del or rm command. (it's simple!)

usecase

You can set filename to compare difference like diff command. You can set any files.

mdiff 1.txt 2.txt 3.txt

you can compare 1.txt, 2.txt and 3.txt
note) 1st arg file to be difference master. always compare master to another.

operations

[h]
display to help of key control.

[Esc,q]
exit to program.

[→,h,Space]
scroll down.
note) scroll lines to depend your terminal sizes.

[←,l]
scroll up.
note) scroll lines to depend your terminal sizes.

[↑,k]
one line up.

[↓,j]
one line down.

[Tab,x]
change to next tab.

[BS,z]
back to prev tab.

[Enter,c]
commit master file to file of you viewing
when you input "y", copy text to target file of you viewing from you displayed
note) not viewing part isn't change.

when you input "a", all copy master file to target file
note) this function use to apply all text
note) If your text wrote by Shift JIS, this tool convert to utf-8 inside. But, when you commit, this tool return to Shift JIS.

[Home:/]
search to master file by word. input word and press enter to search.
escape key is return to compare difference mode.

License

ICU License

About

mdiff: Multi Text Differ impremented by Golang

Resources

License

Stars

Watchers

Forks

Packages

No packages published