• Login
Community
  • Login

How to move text block between two other text blocks?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 3 Posters 519 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.
  • H
    hudson4351
    last edited by Jun 27, 2022, 7:28 PM

    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

    A 1 Reply Last reply Jun 27, 2022, 7:37 PM Reply Quote 0
    • A
      Alan Kilborn @hudson4351
      last edited by Alan Kilborn Jun 27, 2022, 7:38 PM Jun 27, 2022, 7:37 PM

      @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?

      H 1 Reply Last reply Jun 28, 2022, 9:55 PM Reply Quote 0
      • H
        hudson4351 @Alan Kilborn
        last edited by hudson4351 Jun 28, 2022, 9:56 PM Jun 28, 2022, 9:55 PM

        @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++.

        P 1 Reply Last reply Jun 28, 2022, 9:56 PM Reply Quote 0
        • P
          PeterJones @hudson4351
          last edited by PeterJones Jun 28, 2022, 9:57 PM Jun 28, 2022, 9:56 PM

          @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

          P 1 Reply Last reply Jun 28, 2022, 9:59 PM Reply Quote 2
          • P
            PeterJones @PeterJones
            last edited by PeterJones Jun 28, 2022, 10:03 PM Jun 28, 2022, 9:59 PM

            @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
            5 out of 5
            • First post
              5/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors