Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Bookmark specific lines down till before another specific line

    General Discussion
    2
    6
    138
    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 Goh
      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 Kilborn 2 Replies Last reply Reply Quote 0
      • Alan Kilborn
        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 Kilborn
          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 Goh 1 Reply Last reply Reply Quote 0
          • Isaac Goh
            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 Kilborn 1 Reply Last reply Reply Quote 0
            • Alan Kilborn
              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 Goh 1 Reply Last reply Reply Quote 2
              • Isaac Goh
                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
                Copyright © 2014 NodeBB Forums | Contributors