Navigation

    Community

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

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

    Help wanted · · · – – – · · ·
    8
    28
    596
    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.
    • artie-finkelstein
      artie-finkelstein @dail last edited by

      @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
      • artie-finkelstein
        artie-finkelstein @astrosofista last edited by

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

        Alan Kilborn astrosofista 2 Replies Last reply Reply Quote 0
        • Alan Kilborn
          Alan Kilborn @artie-finkelstein last edited by

          @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

          astrosofista 1 Reply Last reply Reply Quote 1
          • Chris Tanguay 0
            Chris Tanguay 0 @gstavi last edited by

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

            1 Reply Last reply Reply Quote 0
            • astrosofista
              astrosofista @artie-finkelstein last edited by

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

              artie-finkelstein 1 Reply Last reply Reply Quote 2
              • astrosofista
                astrosofista @Alan Kilborn last edited by

                @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
                • Alan Kilborn
                  Alan Kilborn last edited by

                  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
                  • artie-finkelstein
                    artie-finkelstein @astrosofista last edited by

                    @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
                    • First post
                      Last post
                    Copyright © 2014 NodeBB Forums | Contributors