Community
    • Login

    Bookmark specific lines down till before another specific line

    Scheduled Pinned Locked Moved General Discussion
    6 Posts 2 Posters 358 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.
    • Isaac GohI
      Isaac Goh
      last edited by

      Is it possible to bookmark starting from “/abc/volumes:” down till before “/def/volumes:” via command? Thanks

      /abc/volumes:
      123
      abc
      def
      456

      /def/volumes:

      Alan KilbornA 2 Replies Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Isaac Goh
        last edited by

        @isaac-goh

        It is not possible to do it manually, say like selecting multiple files in Windows Explorer works.

        It can be done as the result of a Mark search.

        However, to get more insight, let me ask you WHY you want to do this. If we can understand this, maybe we can offer better suggestions.

        Traditionally, bookmarks are used to allow a quick and easy jump to a section of your file. You can achieve this by setting ONE bookmark here, on the /abc/volumes line. So I’m thinking maybe there is more to the story of your end goal.

        1 Reply Last reply Reply Quote 1
        • Alan KilbornA
          Alan Kilborn @Isaac Goh
          last edited by Alan Kilborn

          @isaac-goh

          BTW, didn’t you ask basically the same question some time ago HERE?

          Isaac GohI 1 Reply Last reply Reply Quote 0
          • Isaac GohI
            Isaac Goh @Alan Kilborn
            last edited by

            @alan-kilborn
            Yes, that is for specific lines down to the next empty lines.
            Right now, there were empty lines in between, thus need to specify to bookmark till before the next specific line instead. Thanks

            Alan KilbornA 1 Reply Last reply Reply Quote 0
            • Alan KilbornA
              Alan Kilborn @Isaac Goh
              last edited by

              @isaac-goh

              As before – even though it wasn’t specifically mentioned in that other thread – you’d use the Mark command with the Bookmark Line option.

              Find: (?s-i)^/abc/volumes:.*?^/def/volumes:

              A limitation of the Mark command, though is that it is Mark All and not just “Mark next” so if you have multiple groups of lines that match the criteria below the caret, you’d get multiple ranges bookmarked.

              Isaac GohI 1 Reply Last reply Reply Quote 2
              • Isaac GohI
                Isaac Goh @Alan Kilborn
                last edited by

                @alan-kilborn
                This is what I need. Appreciate your prompt assistance, many thanks Cheer!!!.

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