• Login
Community
  • Login

What does the "Wrap around" check box do in 'search', 'replace' and 'mark' tabs?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 3 Posters 14.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.
  • C
    C Ananda Rao
    last edited by Sep 11, 2018, 1:39 PM

    Dear Folks
    I am here again with another question.

    I ask because I could not get any help file for notepad++ from its help menu. Be that as it may, what does this chek box do in search and replace operations?

    With the best regards

    S 1 Reply Last reply Sep 11, 2018, 4:07 PM Reply Quote 2
    • P
      PeterJones
      last edited by Sep 11, 2018, 2:29 PM

      if you start the search or replace from the middle of the file (ie, your cursor was partway through the file), it will “wrap around” to the beginning of the file and continue back through once it’s made it to the end.

      line 1
      line 2|
      line 3
      

      If your cursor was after the “2” (shown by vertical bar) and you searched for “line”, it would just find the third “line” if you don’t have Wrap Around enabled, but would go back and also match the first and second "line"s if Wrap Around is selected.

      1 Reply Last reply Reply Quote 1
      • S
        Scott Sumner @C Ananda Rao
        last edited by Sep 11, 2018, 4:07 PM

        @C-Ananda-Rao

        With Wrap around ticked, the status bar in the Find window will tell you a wrap occurred if you pay attention to it:

        • Find: Found the 1st occurrence from the top. The end of the document has been reached.
          -OR-
        • Find: Found the 1st occurrence from the bottom. The top of the document has been reached.

        Which one you see when a wrap occurs will depend upon the state of the Backward direction checkbox.

        And in the Mark tab, text will only be redmarked from the caret location to the end-of-file (Backward direction unticked) or start-of-file (Backward direction ticked) unless Wrap around is ticked (in which case redmarking will affect the entire file).

        The interesting (read: buggy) part here is that the Backward direction checkbox is not visible on the Mark tab.

        I like to always tick Wrap around when redmarking…and avoid that confusion.

        1 Reply Last reply Reply Quote 1
        • C
          C Ananda Rao
          last edited by Sep 12, 2018, 1:25 PM

          Thanks a lot, Mr. Peter Jones and Mr. Scott Sumner!

          Btw, is there a manual (even an old one would do) for notepad++? I mean a help file that can be opened from within notepad++?

          S 1 Reply Last reply Sep 12, 2018, 1:35 PM Reply Quote 2
          • S
            Scott Sumner @C Ananda Rao
            last edited by Sep 12, 2018, 1:35 PM

            @C-Ananda-Rao said:

            is there a manual

            I think there is only the Wiki …and it is somewhat out of date…but I could be wrong about there not being an actual “manual”.

            1 Reply Last reply Reply Quote 1
            • P
              PeterJones
              last edited by Sep 12, 2018, 1:35 PM

              There is the old (read-only) Notepad++ Wiki : it’s years out-of-date, but some of the basic information is still useful. (For example, the Wrap around is mentioned briefly on the Searching And Replacing page .)

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