• Login
Community
  • Login

Replace dialog problem

Scheduled Pinned Locked Moved General Discussion
21 Posts 6 Posters 1.9k 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.
  • Z
    zbrush zbrusher
    last edited by Oct 21, 2020, 10:02 AM

    When I open “Replace dialog” the checkbox “In selection” is grayed/disabled (even if there is a selection in the editor).
    The workaround is to click on “Find” tabbed panel of “Replace dialog” and then click to “Replace” tabbed panel: now the checkbox “In selection” is clickable.
    System: Windows10 64 bit with notepad++ 7.9 32 bit
    Thanks
    cameyo

    E 1 Reply Last reply Oct 21, 2020, 10:50 AM Reply Quote 0
    • E
      Ekopalypse @zbrush zbrusher
      last edited by Oct 21, 2020, 10:50 AM

      @zbrush-zbrusher

      This does not happen for me. How do you start the replace dialog?
      Can you post your debug-info which is available from within the last menu, the ? menu?

      1 Reply Last reply Reply Quote 1
      • Z
        zbrush zbrusher
        last edited by Oct 21, 2020, 3:57 PM

        Notepad++ v7.9 (32-bit)
        Build time : Sep 22 2020 - 03:24:22
        Path : C:\Program Files (x86)\Notepad++\notepad++.exe
        Admin mode : OFF
        Local Conf mode : OFF
        OS Name : Windows 10 Enterprise (64-bit)
        OS Version : 1909
        OS Build : 18363.1139
        Current ANSI codepage : 1252
        Plugins : CsvQuery.dll DSpellCheck.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConverter.dll nppcrypt.dll NppExec.dll NppExport.dll NPPJSONViewer.dll NppSaveAsAdmin.dll NppTextFX.dll pork2sausage.dll SurroundSelection.dll
        https://imgur.com/a/SFFMbfP

        A 1 Reply Last reply Oct 21, 2020, 5:29 PM Reply Quote 0
        • A
          Alan Kilborn @zbrush zbrusher
          last edited by Alan Kilborn Oct 21, 2020, 5:30 PM Oct 21, 2020, 5:29 PM

          @zbrush-zbrusher said in Replace dialog problem:

          Also doesn’t happen that way for me.

          https://imgur.com/a/SFFMbfP

          In your screenshot the Replace window has a dimmed out title bar, meaning it is inactive. If you click on it, doesn’t the In selection box get enabled?

          Z 2 Replies Last reply Oct 24, 2020, 3:50 PM Reply Quote 0
          • R
            rinku singh
            last edited by rinku singh Oct 22, 2020, 3:31 PM Oct 22, 2020, 3:28 PM

            and 32bit notepad++ tells i’m on Enterprise window but my win 10 is pro who tells 64 bit notepad++ also
            captur.pngdfgrg.png

            1 Reply Last reply Reply Quote 0
            • Z
              zbrush zbrusher @Alan Kilborn
              last edited by Oct 24, 2020, 3:50 PM

              @Alan-Kilborn No. When Replace window is active the checkbox “In Selection” is disabled.

              1 Reply Last reply Reply Quote 0
              • Z
                zbrush zbrusher @Alan Kilborn
                last edited by Oct 24, 2020, 3:54 PM

                @Alan-Kilborn This problem only happens sometimes, it doesn’t happen every time.

                1 Reply Last reply Reply Quote 0
                • Z
                  zbrush zbrusher
                  last edited by Nov 10, 2020, 10:27 AM

                  this problem also exists in version 7.9.1

                  A P 2 Replies Last reply Nov 10, 2020, 12:58 PM Reply Quote 0
                  • A
                    Alan Kilborn @zbrush zbrusher
                    last edited by Nov 10, 2020, 12:58 PM

                    @zbrush-zbrusher

                    Let’s see another screenshot of it, when the Find window is active.

                    @rinku-singh 's screenshot doesn’t tell anything regarding this matter.

                    1 Reply Last reply Reply Quote 1
                    • P
                      PeterJones @zbrush zbrusher
                      last edited by Nov 10, 2020, 3:02 PM

                      @zbrush-zbrusher ,

                      this problem also exists in version 7.9.1

                      Further to @Alan-Kilborn’s reply, I add: “It works for me”. And I supply proof:

                      Please note the sequence of events: when there is no selection and you activate (click on) the Replace dialog, the ☐ In Selection is grey and does not respond. If you go back and make an active selection, it stays greyed out until you click on the Replace dialog again, at which point the checkbox becomes active and you can toggle it. If you clear the selection again, the checkbox doesn’t grey out until you click on the Replace dialog.

                      In other words, for v7.9.1, as was said 20 days ago on v7.9, the In Selection changes state to match the current selection or lack thereof only after you reactivate the Replace dialog. The behavior is reasonable and consistent from v7.9 to v7.9.1.

                      If you have an instance where you think it doesn’t work right – where “right” is defined as the selection is made in Notepad++ and the Replace dialog has been clicked on so that it’s already active, then, as Alan said,

                      Let’s see another screenshot of it, when the Find window is active.

                      Z P 3 Replies Last reply Nov 11, 2020, 8:10 PM Reply Quote 3
                      • Z
                        zbrush zbrusher @PeterJones
                        last edited by Nov 11, 2020, 8:10 PM

                        @PeterJones Screenshot
                        https://imgur.com/a/e1YbJXY
                        Thanks

                        P 1 Reply Last reply Nov 11, 2020, 8:28 PM Reply Quote 0
                        • Z
                          zbrush zbrusher @PeterJones
                          last edited by Nov 11, 2020, 8:19 PM

                          @PeterJones One more info. After capturing the screen (with PrtScr key) the “Replace” checkbox is active (enable).

                          1 Reply Last reply Reply Quote 0
                          • P
                            PeterJones @zbrush zbrusher
                            last edited by Nov 11, 2020, 8:28 PM

                            @zbrush-zbrusher ,

                            Sorry, I cannot tell from that screenshot whether or not you’ve moved focus into the Replace window. I am not convinced that you have.

                            But if you really have moved focus there, then I cannot replicate your problem, and have no suggestions what you should do. Until you can give us enough that we can replicate it reliably, there’s not much that can be done.

                            A Z 2 Replies Last reply Nov 11, 2020, 9:06 PM Reply Quote 1
                            • A
                              Alan Kilborn @PeterJones
                              last edited by Nov 11, 2020, 9:06 PM

                              @PeterJones said in Replace dialog problem:

                              Sorry, I cannot tell from that screenshot whether or not you’ve moved focus into the Replace window. I am not convinced that you have.

                              Too bad the Transparency (on losing focus) was not engaged, for some conclusive proof.

                              1 Reply Last reply Reply Quote 1
                              • Z
                                zbrush zbrusher @PeterJones
                                last edited by Nov 12, 2020, 9:43 AM

                                @PeterJones: here is a new screenshot (and I have moved the focus into the Replace window).
                                npp-replace.png

                                A 1 Reply Last reply Nov 12, 2020, 12:54 PM Reply Quote 2
                                • A
                                  Alan Kilborn @zbrush zbrusher
                                  last edited by Nov 12, 2020, 12:54 PM

                                  @zbrush-zbrusher

                                  It appears to be enough evidence now that there is no misunderstanding.
                                  Unfortunately, I can’t reproduce, so I can’t offer up any possible solution.
                                  :-(

                                  Z 1 Reply Last reply Nov 12, 2020, 8:34 PM Reply Quote 1
                                  • Z
                                    zbrush zbrusher @Alan Kilborn
                                    last edited by Nov 12, 2020, 8:34 PM

                                    @Alan-Kilborn
                                    No problem. I’m pretty sure it’s an interference with an AutoHotkey script.

                                    1 Reply Last reply Reply Quote 0
                                    • guy038G
                                      guy038
                                      last edited by guy038 Nov 13, 2020, 2:44 PM Nov 13, 2020, 2:35 PM

                                      Hello, @zbrush-zbrusher,

                                      You could test a new N++ configuation :

                                      • Close any Notepad++ instance

                                      • In the explorer, search for %AppData which expands to the exact location C:\Users\<user name>\AppData\Roaming

                                      • Rename ( It’s better than delete ! ) the Notepad++ folder as, for instance, Notepad++_OLD

                                      • Re-start N++ => Notepad++ will re-create a new set of contiguration files

                                      • Perform some tests. If the In selection option is accessible and the general behaviour seems OK, close Notepad++

                                      • Then, out of curiosity, you could, with an external compare tool, detect all differences betwen the two folders Notepad++_OLD and Notepad++, under Roaming !

                                      Not certain of the result ! Anyway, you could swap these two folders if some other problems arise. If the new configuration seems OK, you can recover personal data from the old XML configuration files, located in the Notepad++_OLD folder !


                                      Now, this part of the discussion is quite Off-Topic :

                                      Looking to your screenshot, I noticed the line The World’s Hardest Sudoku ! I was intrigued… Some years ago ( 2007 ), I built up a program ( with Qbasic ! ) to solve sudokus, even those with multiple solutions. As, in your picture, this sudoku seemed completely defined, I ran my program and…, 9s later, it gave the sole solution ! So, I don’t think its the hardiest one ;-))

                                      For instance, just try to solve this one, with 17 numbers, only :

                                      51.  ...  ...
                                      ...  .3.  .4.
                                      ...  7..  ...
                                      		 
                                      ..3  6..  1..
                                      6..  2..  ...
                                      ...  ..4  8..
                                      		 
                                      ...  .1.  ..5
                                      2..  ...  .6.
                                      ...  .8.  ...
                                      

                                      I’ll give you the solution in a couple of days ! This sudoku is sudoku-41,699 ( out of 49,151 sudoku-17 ), of the list of Gordon F. Royle, an Australian mathematician

                                      As the old link does not work any more and the new link cannot be reached ( cause Access Denied ! ), the only way is to use the WayBack Machine site ! So :

                                      • The Gordon F. Royle’s article :    http://web.archive.org/web/20150823084923/http://staffhome.ecm.uwa.edu.au/~00013890/sudokumin.php

                                      • The Gordon F. Royle’s list :    http://web.archive.org/web/20150629103047/http://staffhome.ecm.uwa.edu.au/~00013890/sudoku17


                                      To end, here are some links for documentation on sudokus and sudoku-17 ones :

                                      Wikipedia articles :

                                      • https://en.wikipedia.org/wiki/Mathematics_of_Sudoku

                                      • https://www.wikiwand.com/en/Mathematics_of_Sudoku

                                      • https://en.wikipedia.org/wiki/Sudoku_solving_algorithms

                                      General article :    https://www.technologyreview.com/2012/01/06/188520/mathematicians-solve-minimum-sudoku-problem/
                                      Technical articles :    https://arxiv.org/PS_cache/arxiv/pdf/1201/1201.0749v1.pdf    and    https://arxiv.org/pdf/1201.0749.pdf

                                      https://doc.sagemath.org/html/en/reference/games/sage/games/sudoku.html   ( with Python features to solve, list and print sudokus ! )


                                      Best Regards,

                                      guy038

                                      Z 1 Reply Last reply Nov 13, 2020, 3:49 PM Reply Quote 2
                                      • Z
                                        zbrush zbrusher @guy038
                                        last edited by zbrush zbrusher Nov 13, 2020, 3:51 PM Nov 13, 2020, 3:49 PM

                                        @guy038 :
                                        Thanks for the hint: I’ll make the test… later
                                        For Sudoku: my image shows “The World’s Hardest Sudoku” for human (maybe not the hardest, but a difficult one).
                                        Try the following with your program:
                                        (9 0 0 8 0 0 0 0 0)
                                        (0 0 0 0 0 0 5 0 0)
                                        (0 0 0 0 0 0 0 0 0)
                                        (0 2 0 0 1 0 0 0 3)
                                        (0 1 0 0 0 0 0 6 0)
                                        (0 0 0 4 0 0 0 7 0)
                                        (7 0 8 6 0 0 0 0 0)
                                        (0 0 0 0 3 0 1 0 0)
                                        (4 0 0 0 0 0 2 0 0)

                                        Best regards

                                        1 Reply Last reply Reply Quote 0
                                        • guy038G
                                          guy038
                                          last edited by guy038 Nov 14, 2020, 1:46 PM Nov 13, 2020, 6:05 PM

                                          Hello, @zbrush-zbrusher and All,

                                          Your solution, found in 1s with my program, is :

                                          972 853 614
                                          146 279 538
                                          583 146 729
                                          
                                          624 718 953
                                          817 395 462
                                          359 462 871
                                          
                                          798 621 345
                                          265 934 187
                                          431 587 296
                                          

                                          The program needed to test eight cells, which could contain a double solution. My program uses three different algorithms, tested 99 times ( 55 + 34 + 8 ).

                                          In comparison, the example I gave you to look for, needs 300 s about ( although a first solution is immediately found ) and 99,580 uses of these three algorithms to explore all possible solutions and verify that there is only one solution to this sudoku-17 puzzle !

                                          Note also that this grid needs to test 12,300 double solutions and 19 triple solutions and finds 12,338 dead ends ( 12300 + 19 + 19 ) !

                                          Cheers,

                                          guy038

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