Giter VIP home page Giter VIP logo

Comments (7)

pnedev avatar pnedev commented on July 30, 2024

Hi Yaron,

One question regarding

When comparing In One-View mode, the current file and the previous file should be compared.

Why the current file should be compared to the previous and not to the next file? Could you please explain?
I would prefer to compare the current vs. the next file.

BR,
Pavel

from compareplus.

Yaron10 avatar Yaron10 commented on July 30, 2024

Hello Pavel,

I was thinking of the following scenarios:

  1. You start NPP and open two files in order to compare them.
    In this case, practically there's no difference between previous and next.
    But it can still give us a logical reference: two files, current is last and you want to compare it to previous.

  2. You already have some files opened and then you want to compare two other files. You open them.
    If we compare "current vs. next", the newly opened file would be compared to the first old one.

Why would you prefer "current vs. next"?
Is it because "next" is activated when a file has been closed?

Best regards.

from compareplus.

pnedev avatar pnedev commented on July 30, 2024

Hi Yaron,

Why would you prefer "current vs. next"?
Is it because "next" is activated when a file has been closed?

No, no, nothing that "profound", just a "human" logic :) - If you have several files opened and you switch between tabs and later you decide to compare two adjacent files my "feeling" as user would be to switch to the first (left-most in the tabs order) of the files and start the comparison from it. I would assume then that it would be compared to the next file, right after it.

If I'd like to compare two files immediately after I open them in Notepad++ they will be at the end of the tabs list (I've just opened them) and then they will be compared no matter if I've selected the first or the last.

BR,
Pavel

from compareplus.

Yaron10 avatar Yaron10 commented on July 30, 2024

Hello Pavel,

Thanks for the explanation.

Your argument makes sense. However, I still think that the "natural" and more common workflow is "current vs. prev".
As a long time Compare user I've often come across the second scenario I've portrayed.

Would you like me to change that? Not recommended. :) :)

BTW - if "next" was always activated when another file was closed, we could shorten the code.
But if the last tab is closed, "prev" is activated.

Best regards.

from compareplus.

pnedev avatar pnedev commented on July 30, 2024

Hi Yaron,

The change is merged to master, good job!
Thanks.

BR

from compareplus.

Yaron10 avatar Yaron10 commented on July 30, 2024

Hello Pavel,

Thank you!
We might get some feedback regarding this point when you announce the new version.

Best regards.

from compareplus.

jsleroy avatar jsleroy commented on July 30, 2024

This issue was moved to jsleroy/compare-plugin#22

from compareplus.

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.