Giter VIP home page Giter VIP logo

Comments (15)

justbur avatar justbur commented on June 23, 2024 2

try vdiff-temp-files on master

from emacs-vdiff.

justbur avatar justbur commented on June 23, 2024

You want a function for vdiff that creates two buffers to paste text into?

from emacs-vdiff.

4goodapp avatar 4goodapp commented on June 23, 2024

Yes, Exactly.
something like this ready to receive texts from lets say, clipboard
Screen Shot 2020-01-20 at 19 19 16

from emacs-vdiff.

edkolev avatar edkolev commented on June 23, 2024

A wrapper like vim's linediff might make sense https://github.com/AndrewRadev/linediff.vim

Sorry for tailgating another feature request I would like to discuss - would it be simple to support diff-ing narrowed buffers? I could do a PR, as long as there isn't a conceptual issue with this approach.

from emacs-vdiff.

4goodapp avatar 4goodapp commented on June 23, 2024

Yes, something like that exactly 😀.

diff-ing narrowed buffers

Sorry I don't understand what you mean here.

from emacs-vdiff.

4goodapp avatar 4goodapp commented on June 23, 2024

However, The two texts (to compare) don't necessarily need to come from Emacs or an open file itself. It may just come from code I copied from let's Chrome web browser.

from emacs-vdiff.

justbur avatar justbur commented on June 23, 2024

Would the buffers be deleted by default or kept by default? Would you want to name the buffers or give them a temporary name?

from emacs-vdiff.

4goodapp avatar 4goodapp commented on June 23, 2024

I think a temporary name would be OK, left right, text 1 - text 2, or just whatever you may think fit better. by default of course. Maybe add options to rename them.

Would the buffers be deleted by default or kept by default?

Not sure what you mean here.

from emacs-vdiff.

justbur avatar justbur commented on June 23, 2024

from emacs-vdiff.

4goodapp avatar 4goodapp commented on June 23, 2024

Yeah, why not. at least, by default yeah. Maybe not. I don't know... Chose the best, am fine with both 🙂.

from emacs-vdiff.

4goodapp avatar 4goodapp commented on June 23, 2024

@justbur
Hello, Sorry for the delay,
Thank you very much for implementing this feature
I just test it and here is my thoughts:

When it comes to layout It works perfectly.
the auto scroll on both buffer is nice too, I didn't expect that one.

Now about the colors, Am little confused.
Like It's easy to see line that doesn't exist on the other side with the red dashes -----------
howerver on line with different text, only the color change.
An ideal solution would be to use different background to highlight the differences like in this example:

Screen Shot 2020-02-15 at 19 33 27

instead of just changing the color like in the current implementation:

Screen Shot 2020-02-15 at 20 01 06

from emacs-vdiff.

justbur avatar justbur commented on June 23, 2024

The colors used are not set by this package. Their set by the theme you are using.

from emacs-vdiff.

4goodapp avatar 4goodapp commented on June 23, 2024

Hello,
vdiff-temp-files isn't available on Melpa yet.

from emacs-vdiff.

justbur avatar justbur commented on June 23, 2024

It's been there since February. I just downloaded it again. Maybe you pinned it?

from emacs-vdiff.

4goodapp avatar 4goodapp commented on June 23, 2024

That's weird, I just try again but M-x vdiff-temp-files doesn't show nothing...
I remember it was working back in february.

from emacs-vdiff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.