Community
    • Login

    How to move text block between two other text blocks?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 3 Posters 503 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.
    • hudson4351H
      hudson4351
      last edited by

      I’ve read lots of other threads about how to move blocks of text to the right or left but cannot figure out how to do it when the selected block is between two other blocks of text that I do not want to move. For example, in the following text file, how do I move the selected block of text (the column of “bar”) to the right without affecting the other columns (“foo”, “baz”):

      alt text

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

        @hudson4351

        Do you think this is Excel? :-)

        What does “move to the right” mean?
        You want to take this column of single spaces:

        5401db45-a169-4cb9-82f7-84bc60075e1b-image.png

        and move it here?:

        c6af0c37-9944-4696-a5ff-e324e25c879f-image.png

        In a more “automagic” way?

        hudson4351H 1 Reply Last reply Reply Quote 0
        • hudson4351H
          hudson4351 @Alan Kilborn
          last edited by hudson4351

          @alan-kilborn

          That’s not what I’m asking. Let me give a different example:

          alt text

          In this screenshot above, there are 5 spaces between “foo” and “bar”, and 5 spaces between “bar” and “baz”. My question is: is it possible to select the column of “bar” and move the column to the right by 2 spaces without moving the other columns such that there is now 7 spaces between “foo” and “bar”, and 3 spaces between “bar” and baz", like so:

          alt text

          I’m used to using nedit in Linux and am able to do what I described above in that editor and just wondered if it was possible in notepad++.

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @hudson4351
            last edited by PeterJones

            @hudson4351

            is it possible to highlight the column of “bar” and move the column to the right by 2 spaces without moving the other columns such that there is now 7 spaces between “foo” and “bar”, and 3 spaces between “bar” and baz", like so:

            Column Select, Ctrl+X, put cursor at top of new block and column, Ctrl+V

            PeterJonesP 1 Reply Last reply Reply Quote 2
            • PeterJonesP
              PeterJones @PeterJones
              last edited by PeterJones

              @hudson4351 ,

              Or alternately, column select, click-and-hold on the upper left b, then drag so the cursor is two spaces after the first bar and then drop: it will be in the new location

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