• Login
Community
  • Login

Selection of a Paragraph Above or Below

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 3 Posters 743 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.
  • V
    Vlad Kotenko
    last edited by Oct 19, 2020, 7:37 PM

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

    P A 3 Replies Last reply Oct 19, 2020, 7:55 PM Reply Quote 0
    • P
      PeterJones @Vlad Kotenko
      last edited by PeterJones Oct 19, 2020, 7:55 PM Oct 19, 2020, 7:55 PM

      @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
      • A
        Alan Kilborn @Vlad Kotenko
        last edited by Alan Kilborn Oct 19, 2020, 7:58 PM Oct 19, 2020, 7:55 PM

        @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
        • A
          Alan Kilborn @Vlad Kotenko
          last edited by Oct 19, 2020, 8:06 PM

          @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
          • V
            Vlad Kotenko
            last edited by Oct 20, 2020, 10:04 AM

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