Community

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

    Selection of a Paragraph Above or Below

    Help wanted · · · – – – · · ·
    3
    5
    86
    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.
    • Vlad Kotenko
      Vlad Kotenko last edited by

      Does anyone know how to configure the program to select an entire paragraph above or below the cursor with the keys Ctrl + Shift + Up/ Down? (This is the combination which is used in Microsoft Word for this purpose.)

      PeterJones Alan Kilborn 3 Replies Last reply Reply Quote 0
      • PeterJones
        PeterJones @Vlad Kotenko last edited by PeterJones

        @Vlad-Kotenko ,

        Thanks, you helped me learn something new: The Settings > Shortcut Mapper says that SCI_PARADOWNEXTEND and SCI_PARAUPEXTEND are Ctrl+Shift+] / Ctrl+Shift+[ on mine; I haven’t knowingly changed them, so those are probably the default keystrokes; check your own Shortcut Mapper to be sure (or to change the keystrokes):

        d0768748-a6ba-4861-849e-000a021f2bb6-image.png

        1 Reply Last reply Reply Quote 2
        • Alan Kilborn
          Alan Kilborn @Vlad Kotenko last edited by Alan Kilborn

          @Vlad-Kotenko

          Ctrl+Shift+] (default assignment) will select from the caret position, down across the paragraph, continuing to select any blank lines, until the start of next paragraph is reached.

          That may not be desired by you because it isn’t exactly what you asked for.

          But, you could reassign it by going to the Settings menu, choosing Shortcut Mapper, going to the Scintilla commands page, locating SCI_PARADOWN_EXTEND, and then remapping that to whatever you like.

          Similar for SCI_PARAUPEXTEND.

          But, it might be nice if a keycombo could select only the entire paragraph your caret is in, before and after the caret, with no other lines selected.

          1 Reply Last reply Reply Quote 1
          • Alan Kilborn
            Alan Kilborn @Vlad Kotenko last edited by

            @Vlad-Kotenko

            Actually, a macro recorded that is a combination of SCI_PARAUP and SCI_PARADOWN_EXTEND gets you close to what (I think) you want.

            It still selects any extra whitespace below the actual current paragraph, and it doesn’t work if your caret is on the very first line of the current paragraph, but still…may be useful.

            1 Reply Last reply Reply Quote 1
            • Vlad Kotenko
              Vlad Kotenko last edited by

              Thank you. I was able to assign a new key combination in the settings of the program. The automatic selection of empty spaces between paragraphs is not a problem.

              1 Reply Last reply Reply Quote 2
              • First post
                Last post
              Copyright © 2014 NodeBB Forums | Contributors