Community
    • Login

    Compare Plugin

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    22 Posts 9 Posters 140.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • guy038G
      guy038
      last edited by

      Hi, Yaron,

      Many thanks for creating these modified releases, so quickly :-))

      They both work, as expected, with the zoom synchronization and the default No button, when a complete match occurs.

      BTW, when I said, in my previous post,

      The ESC key does NOT close the dialog, with the implicit No answer, as well as a left mouse click on the close button :-(

      I just pointed out that, IF a Cancel button is available, in a dialog box, hitting the ESC key or mouse clicking on the red cross icon, in the top right corner of the dialog, is strictly equivalent to mouse clicking on the No button !


      I don’t ask for this new feature, but I’m wondering :

      As you, seemingly, want to keep the zoom levels of your two N+ views, for your own needs, may be it would be possible to temporary store the current zoom level, of each view, in order :

      • To synchronize the zoom levels of the two views, during the compare process ( ALT + D )

      • To get back to these initial zoom levels, after a Clear Results command ( CTRL + ALT + D ) !

      So, you wouldn’t have to build two versions of your plugin ! ( one with zoom synchronization, and the other without ). Of course, I don’t even know if that goal is technically possible to reach ?

      Cheers,

      guy038

      1 Reply Last reply Reply Quote 0
      • YaronY
        Yaron
        last edited by

        Hello guy038,

        My pleasure.
        If you regularly use Compare, I’m glad I’ve been able to slightly reciprocate to your kind and wise help to everyone on this forum. :)

        Ede123 has referred me to jsleroy’s current repo.
        If anything happens there, your contribution would be highly appreciated.

        As for the Zoom Sync:
        Thanks for the suggestion.
        I never change the zoom level and therefore removed the relevant code in the version I use.

        I forgot to mention another modification: a sound notification when wrapping around (i.e. if you reach the last diff and press Next - a beep will play in addition to the window flash).

        Best regards.

        1 Reply Last reply Reply Quote 0
        • YaronY
          Yaron
          last edited by

          Hello,

          I owe UFO an apology.
          What I thought was an improvement in comparing with Wrap mode, is actually a regression (back to v1.5.6.3 behavior) in many cases.
          (Compare the files in Test2.zip).

          We shouldn’t use NPP vertical scroll sync but rather UFO’s “case SCN_UPDATEUI:”.


          NPP enabling and disabling the Sync Scroll commands is somewhat inconsistent.
          Therefore my changes relating to restoring the Sync Scroll state are too complex and not worth it.
          Back to UFO’s Restore Sync Scroll.

          See guy038’s comment and UFO’s reply.

          Best regards.

          ComparePlugin.v1.5.6.7.NewImages.NoDefault.bin.zip
          ComparePlugin.v1.5.6.7.OldImages.NoDefault.bin.zip

          1 Reply Last reply Reply Quote 0
          • DouteiD
            Doutei
            last edited by Doutei

            Using your files found in Test.zip:
            Compare 1.5.6.4 (UFO) and below - correct navbar https://i.imgur.com/JMybhaZ.png (well, more or less, as there are too many lines to fit in this small window anyway)
            Compare 1.5.6.5 (UFO) and above (including your new builds) - incorrect https://i.imgur.com/nXJNG1N.png

            1 Reply Last reply Reply Quote 0
            • YaronY
              Yaron
              last edited by

              Hello Doutei,

              I never use the NavBar and did not follow UFO’s relevant changes.
              It’s possible that UFO decided to ignore one-line-blocks.

              Could you open an issue here?
              Jean Sebastien and/or Pavel might look into it.

              Best regards.

              1 Reply Last reply Reply Quote 0
              • Did KokosD
                Did Kokos
                last edited by

                Plugin good. But I would like to display the number of similar / different lines in figures or percentages.

                1 Reply Last reply Reply Quote 0
                • YaronY
                  Yaron
                  last edited by

                  Hello Did,

                  I’d like to have this feature too.
                  Please see this issue.

                  Best regards.

                  1 Reply Last reply Reply Quote 0
                  • Sonia SamimiS
                    Sonia Samimi
                    last edited by

                    Hi guys,
                    I’ve installed notepad++ to compare .cs files but it doesn’t work.
                    1- open both files
                    2- plugin
                    3- compare
                    4- compare
                    then I saw “unknown exception” error.
                    any suggestions?!!

                    1 Reply Last reply Reply Quote 0
                    • minsikauM
                      minsikau
                      last edited by

                      Sonia HI.

                      I had compare troubles where the plugin was destroying returning to the previous explorer file listing (for instance) which i traced down to the compare plugin. After a hell of a lot of wasted time and tracking down I find that 1.5.6.6 does actually work for me in comparing as well as returning focus to the original program once Notepad++ has been closed. So I recommend 1.5.6.6. from [https://bitbucket.org/uph0/compare/downloads](link url).

                      Also a dose of Good luck. MInsik.

                      1 Reply Last reply Reply Quote 0
                      • Petr JenderkaP
                        Petr Jenderka
                        last edited by

                        Hello Yaron, thanks for changes you made on plugin. I used old one until now and i have a lot of troubles with it.
                        You and UFO have made great job! :-)

                        I have one proposal for improvement. It will be nice to have a options to change color(or reverse alpha) of text in highlighted areas. I have the dark theme with light color text and when selected lines have bright background(default yellow or green) then the text fades in background.

                        1 Reply Last reply Reply Quote 0
                        • YaronY
                          Yaron
                          last edited by

                          Hello Petr,

                          Thanks. UFO deserves the flowers. :)
                          Pavel Nedev has been working on a new version. Yo can open an issue here.

                          Best regards.

                          1 Reply Last reply Reply Quote 0
                          • crayxtC
                            crayxt
                            last edited by

                            hello Yaron,

                            Could you provide a 64-build of compareplugin, please?

                            Thanks

                            1 Reply Last reply Reply Quote 0
                            • YaronY
                              Yaron
                              last edited by

                              Hello crayxt,

                              Pavel Nedev’s excellent version (both x32 & x64) is available here.

                              Best regards.

                              1 Reply Last reply Reply Quote 0
                              • crayxtC
                                crayxt
                                last edited by

                                Thank you Yaron!

                                1 Reply Last reply Reply Quote 0
                                • YaronY
                                  Yaron
                                  last edited by

                                  You’re welcome.

                                  1 Reply Last reply Reply Quote 0
                                  • Jay RobbieJ
                                    Jay Robbie
                                    last edited by Jay Robbie

                                    @Yaron said:

                                    Hello crayxt,

                                    Pavel Nedev’s excellent version (both x32 & x64) is available here.

                                    Best regards.

                                    Yaron, thanks to your comment, I downloaded the “cp-pnedev-0094-d8e277588455e43f16041566073126e706185960.7z” file from Pavel’s DropBox page to test the 64bit version. It works, with the following caveat:

                                    1. If Notepad++ 7.2.2 x64 is launched, but the Compare plugin is never used, Notepad++ crashes on Exit.
                                    2. If Notepad++ 7.2.2 x64 is launched, and the Compare plugin is used, Notepad++ does not crash on Exit.
                                      .

                                    In the 7z archive file, I noticed the 32bit Compare plugin version includes a “ComparePlugin” folder with two files in it: git2.dll & sqlite3.dll. However, in the 64bit Compare plugin version, the “ComparePlugin” folder is empty. I was able to find a 64bit version of sqlite3.dll online from the sqlite organization, but git2.dll seems to be development language specific (there is no generic 64bit version available). The Compare plugin works without these 64bit DLLs, but I’m wondering if they are needed to prevent Notepad++ from crashing on exit if the Compare plugin is not used.

                                    If you have any insight on whether the 64bit “ComparePlugin” DLLs are necessary, or if you can pass this note along to Pavel Nedev, it would be appreciated.

                                    I look forward to your response.

                                    Best regards.

                                    -Jay

                                    1 Reply Last reply Reply Quote 0
                                    • Jay RobbieJ
                                      Jay Robbie
                                      last edited by

                                      Regarding my previous post, the same problem occurs with the 32bit version of the Compare plugin in Notepad++ 7.2.2 32bit…

                                      1. If Notepad++ 7.2.2 is launched, but the Compare plugin is never used, Notepad++ crashes on Exit.
                                      2. If Notepad++ 7.2.2 is launched, and the Compare plugin is used, Notepad++ does not crash on Exit.
                                        .

                                      I’m still unsure about the importance of the git2.dll & sqlite3.dll files located in the “ComparePlugin” folder, but the crash on exit occurs on both 32bit & 64bit versions of Notepad++. (Removing “ComparePlugin.dll” from the Notepad++ plugins folder resolves the problem)

                                      1 Reply Last reply Reply Quote 0
                                      • Jay RobbieJ
                                        Jay Robbie
                                        last edited by Jay Robbie

                                        @Yaron said:

                                        Hello crayxt,

                                        Pavel Nedev’s excellent version (both x32 & x64) is available here.

                                        Best regards.

                                        Yaron, thank you for posting your comment regarding a 64bit Compare plugin. Unfortunately, the plugin DLL in the link you provided caused Notepad++ 7.2.2 (both 32bit & 64bit) to crash on exit if the Compare plugin (both 32bit & 64bit) was installed, but not used during a Notepad++ session - an unusual problem.

                                        Luckily, after some digging, I found a Compare plugin (both 32bit & 64bit) version that does work from Appveyor…

                                        Compare Plugin v1.5.6.8 (compatible with Notepad++ 7.2.2 32bit & 64bit)

                                        32bit:
                                        https://ci.appveyor.com/project/jsleroy/compare-plugin/build/job/ad3uerb6ebct87k8/artifacts

                                        64bit:
                                        https://ci.appveyor.com/project/jsleroy/compare-plugin/build/job/qerjyu4gfe4je8ch/artifacts

                                        Best Regards.

                                        -Jay

                                        P.S. - Please disregard my two previous posts. I can’t seem to delete them.

                                        1 Reply Last reply Reply Quote 0
                                        • YaronY
                                          Yaron
                                          last edited by

                                          Hello Jay,

                                          The links I posted were outdated. Sorry.
                                          Pavel Nedev frequently updates the Compare Plugin Repository. I’d recommend to follow it.
                                          And let’s not forget to thank Pavel for his remarkable work. :)

                                          The files git2.dll & sqlite3.dll are for the “Git Diff” command/functionality.
                                          If you don’t use that command you don’t need those DLLs.

                                          Best regards.

                                          1 Reply Last reply Reply Quote 1
                                          • First post
                                            Last post
                                          The Community of users of the Notepad++ text editor.
                                          Powered by NodeBB | Contributors