• Login
Community
  • Login

How do I align/indent text to an inside column (using SHIFT-CTRL-ALT+ Left Click)

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
33 Posts 10 Posters 14.2k 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.
  • A
    artie-finkelstein @dail
    last edited by Aug 14, 2021, 2:10 AM

    @dail
    Good suggestions, particularly about not getting hung up on all the ‘slave’ cursors, i.e., you practice playing scales before playing a concerto when learning to play the piano.

    I’m still trying to get caught up with all the tutorials @astrosofista posted, but this sounds like a good way to approach them.

    1 Reply Last reply Reply Quote 0
    • A
      artie-finkelstein @astrosofista
      last edited by Aug 14, 2021, 2:21 AM

      @astrosofista
      I couldn’t get your first example to work. And, I really, REALLY, don’t like the idea of changing preferences I don’t regularly modify and that seem to have a wide ranging effect on the editor configuration just to complete a single edit session. [Tab sizing is another issue and easy to verify what happens].

      However, the second example was right up my alley; a nice two step divide and conquer approach: take care of the irregular part then remove the remaining bulk to the left. Right along with the gist of @dail’s suggestion about not trying to view it as one big problem, instead solve the pieces.

      Thank you for yet another helpful tutorial.

      A A 2 Replies Last reply Aug 14, 2021, 11:12 AM Reply Quote 0
      • A
        Alan Kilborn @artie-finkelstein
        last edited by Aug 14, 2021, 11:12 AM

        @artie-finkelstein said in How do I align/indent text to an inside column (using SHIFT-CTRL-ALT+ Left Click):

        I really, REALLY, don’t like the idea of changing preferences I don’t regularly modify and that seem to have a wide ranging effect on the editor configuration just to complete a single edit session

        I find that the “palatability” of such things is proportional to how much data I’m dealing with. If it is a lot of data and the technique is going to do the job for me, it is fine. Better to mod a preference temporarily than to do a large task manually. :-)

        I too could not get the first example of @astrosofista to work. Here’s what it looked like after step 2, which I don’t think is correct vs. what was shown:

        0b5a5ec0-0f89-40a0-98a2-3b864830d7a7-image.png

        A 1 Reply Last reply Aug 15, 2021, 1:34 AM Reply Quote 1
        • C
          Chris Tanguay 0 @gstavi
          last edited by Aug 14, 2021, 1:44 PM

          @gstavi
          Incredible! Thank you! I’ve learned more in this one post…
          awesomeness

          1 Reply Last reply Reply Quote 0
          • A
            astrosofista @artie-finkelstein
            last edited by Aug 15, 2021, 1:27 AM

            @artie-finkelstein, All:

            Sorry, my bad. There is an error in the indications of the first selection. The correct action is 2. Shift + End to select to the end of each line. Thanks for testing the example and letting me know the result.

            I understand if someone doesn’t want to change the preferences - as I am sometimes reluctant to change them myself - but if you want to use the multi-selection technique on a daily basis you will find that sometimes there is no other way to solve such a problem than to change the word delimiter. For example, in this post, for which I came up with that idea.

            Of course, and as rightly stated in the post, the problem can be solved with regex or even scripting as well. But to users like the OP of the post, who don’t know anything about regex or scripting nor sadly want to learn, they could solve the problem with the multi-selection technique, which only requires basic notions of usage like scrolling through text using the keyboard and making selections. And in some cases it requires a change in preferences. I think the benefit far outweighs the cost.

            Anyway, when choice is possible - which was not the case with the OP of the post -, it is reasonable for the user to choose the technique that best suits their tastes or needs. I have no objection to this.

            Regarding the second and last example, I would just like to comment that it is possible to solve it in either direction, i.e., one can also start with the rectangular selection and then remove the irregular part. However, for the purposes of explanation, it seemed to me that the idea is better visualized if you leave the rectangular selection to the end.

            That’s all. Thanks again for the feedback.

            A 1 Reply Last reply Aug 16, 2021, 12:27 AM Reply Quote 2
            • A
              astrosofista @Alan Kilborn
              last edited by Aug 15, 2021, 1:34 AM

              @Alan-Kilborn said in How do I align/indent text to an inside column (using SHIFT-CTRL-ALT+ Left Click):

              I too could not get the first example of @astrosofista to work. Here’s what it looked like after step 2, which I don’t think is correct vs. what was shown:

              Yes, my bad, sorry for that. Step 2 doesn’t need to use Ctrl, just Shift + End.

              Thank you for the feedback.

              1 Reply Last reply Reply Quote 1
              • A
                Alan Kilborn
                last edited by Aug 15, 2021, 12:03 PM

                This thread and specifically THIS POSTING brings great closure to THIS OTHER THREAD I started almost 4 years ago. Thanks again @gstavi !

                1 Reply Last reply Reply Quote 1
                • A
                  artie-finkelstein @astrosofista
                  last edited by Aug 16, 2021, 12:27 AM

                  @astrosofista
                  I tried again and again with your updated instructions. Then I went back and carefully re-read the original and entered " ," space comma (0x20 0x2C) in the word delimiter preferences and it worked nicely. (I’d only remembered the comma.) Further investigation leads me to believe:

                  • The space character is mandatory for the proper left arrow movement
                  • The comma is mandatory for the initial area expansion

                  Now I have to expand my pattern recognition space …
                  Perhaps the old rubric:

                  Some people, when confronted with a problem, think-
                  "I know, I'll use regular expressions."
                  Now they have two problems.
                  --Jamie Zawinski
                  

                  should be updated to

                  Some people, when confronted with a problem, think-
                  "I know, I'll use 'BetterMultiSelection'."
                  Now they have two problems (unless they are @astrosofista).
                  

                  Thank you.

                  (I think I may have over reacted to the warnings in ‘Word character list’, but now I have to figure out how to make it easier to (re)select the default list after mucking about where only the wizards dare tread.)

                  1 Reply Last reply Reply Quote 1
                  • A
                    AN Đỗ @astrosofista
                    last edited by May 13, 2023, 6:37 AM

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • A
                      AN Đỗ @gstavi
                      last edited by May 13, 2023, 6:42 AM

                      @gstavi Thanks . That works well.
                      Now I know the other usage of ctrl del in notepad++ hihi

                      1 Reply Last reply Reply Quote 0
                      • M
                        Maria Benich @astrosofista
                        last edited by Nov 27, 2024, 10:38 AM

                        @astrosofista Thank you. Any way instead of scrolling down while pressing shift +alt to make something to jump to the last line? When i have thousands of records it hard to make scroll several minutes to get to the end.

                        A M 2 Replies Last reply Nov 27, 2024, 11:35 AM Reply Quote 0
                        • A
                          Alan Kilborn @Maria Benich
                          last edited by Alan Kilborn Nov 27, 2024, 11:36 AM Nov 27, 2024, 11:35 AM

                          @Maria-Benich

                          You might try this command:

                          a6bc4ac8-13cb-4c71-84ce-1ec2bf83ae4f-image.png

                          Read the user manual for how it works HERE.

                          1 Reply Last reply Reply Quote 1
                          • M
                            Maria Benich @Maria Benich
                            last edited by Nov 27, 2024, 11:48 AM

                            @Maria-Benich Thank you! It worked perfect!

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