Community
    • Login

    replace and Search vs. just replace

    Scheduled Pinned Locked Moved General Discussion
    8 Posts 3 Posters 5.1k 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.
    • Regina GrammR
      Regina Gramm
      last edited by

      Is it a great problem, to give the choice to the user, wether he want to replace something and seach the next point or just replace (and then can see and check the result).

      I often make RegEx Replacements, but sometimes I make mistakes. Now I have to use an exta File, if I want to check the result. So I often use Sigil for experiments.

      1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank
        last edited by

        Hi Regina,

        don’t know if I understand you correctly but isn’t this
        already possible using the replace dialog?

        As long as you click on replace the found word will be replaced
        and next occurance will be searched and you can decide
        if you want to replace or find another instance again.
        In addition you can always press undo during replacing.

        I guess I misunderstood something here, did I ?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Regina GrammR
          Regina Gramm
          last edited by

          Hi Claudia,
          Thanks for asking. - You give a very good describtion of the replace Button. My Problem is - Sometimes I want to see! what the replace has done. So I need a “replace only” - Button. Now the Button makes more than the name sais. The most time it is Ok. But Sometimes… You undersood?

          Greetings Regina

          Cees TimmermanC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC
            Claudia Frank
            last edited by

            Hi Regina,

            not 100% sure but if I understand correctly you would have something like
            an additional textbox/window which shows what the last replace really did!?
            E.g. You want to change every word monday to MONDAY and the dialog should
            provide addition information like
            before: monday
            after: MONDAY

            Correct?

            If so, then it isn’ t that easy to solve. While you still have the old state in
            the UNDO buffer showing the result in the dialog would mean you need
            an additional scintilla component within the dialog box and the resulting
            text could be really big, especially when using regular expressions.
            Nevertheless, a nice idea and maybe someone else (DonHo?) finds
            way how this can be a future feature.

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0
            • Regina GrammR
              Regina Gramm
              last edited by

              Hi Claudia,
              That’s to much. :)
              SometimesI want a “just replace” without hopping to the next place. I want to see the result of change at the place I am standing.

              the normal operation is : I find a bug and create a RegEx . I try “find” whether my expression finds the error. And then I want to see “what does the replacement at the site”. Sometimes I want a replacement without jumping to the next place.
              If you want to see, what I mean: In Sigil a free Ebook program you have three buttons: Find, Replace & Find, and Replace.

              1 Reply Last reply Reply Quote 0
              • Claudia FrankC
                Claudia Frank
                last edited by

                Hi Regina,

                after installing Sigil I (hopefully) finally understand what you want.
                When you replace the found text you want to stay on the current position
                of the replaced text instead of jumping to the next occurance, correct?

                If so, yes, this needs to be addressed as feature request.
                I don’t see another way to solve this usefully.

                Do you know that there is a RegEx Helper plugin?
                Maybe this can support you to test your regular expressions before executing it.

                Cheers
                Claudia

                1 Reply Last reply Reply Quote 0
                • Cees TimmermanC
                  Cees Timmerman @Regina Gramm
                  last edited by

                  @Regina-Gramm To see what a regex has affected, press Undo, then Redo (or Ctrl+Z, Ctrl+Y). The cursor will stay at the last change.

                  1 Reply Last reply Reply Quote 1
                  • Regina GrammR
                    Regina Gramm
                    last edited by

                    Hi Claudia,

                    I think, you’re right, that this is a feature request. I will do that.
                    And
                    Thx for the hint with the RegEx Helper! I did not know that.

                    @Cees Yes, that works. Why it didn’t come to my mind - ? :-) Thx!

                    Cheers

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