Community
    • Login

    [suggestion] Select text between markers

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 4.2k Views 2 Watching
    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.
    • David FernandesD Offline
      David Fernandes
      last edited by

      Is there a way to select some portion of text between twomarkers?
      For instance: I search a text in a long file and set a marquer in the line, then, search another text and set the second marker… I would like to select and isolate all lines between them.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @David Fernandes
        last edited by PeterJones

        @David-Fernandes ,

        It depends on what you mean by “markers”. If you mean a bookmarked line (clicking in the bookmark margin, or Ctrl+F2 to toggle bookmarks), then one way, if you’ve got two bookmarked lines:
        227c10c8-47b2-4055-97a4-9226508b0f01-image.png

        • F2 (Search > Bookmark > Next Bookmark) to go to one of the two bookmarks
        • Ctrl+Shift+B (Edit > Begin/End Select) to start the selection
        • F2 (Search > Bookmark > Next Bookmark) to go to other bookmark
        • Ctrl+Shift+B (Edit > Begin/End Select) to end the selection
        • → it will be selected from the start of the upper line to the start of the lower line (so it will not include the full lower line)

        8c3b76f9-07f7-4a30-a11c-405f92b9abf1-image.png

        If you just have two locations, and can get to them in some other way, you can use the same Begin/End Select.

        For example, if I have used the Search > Mark dialog to mark the 9 instances of morbi in my Lorem ipsum text, I could then use F3 (Search > Find Next) to get to the desired morbi mark, then Ctrl+Shift+B to start the selection, then F3 one or more times to get to another morbi, then Ctrl+Shift+B to select that region:

        8876e9c0-362c-473f-a9eb-10074fe58c21-image.png

        Either of these give some sort of “marker” and then select the text in between. To “isolate”, I assume you could copy/paste the selection to some other document or to some other section of your current document.

        If this isn’t sufficient, you will have to explain more about what you want.

        1 Reply Last reply Reply Quote 3

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors