Community
    • Login

    More space at the left of the first column

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    13 Posts 4 Posters 955 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.
    • TBugReporterT
      TBugReporter @guy038
      last edited by

      @guy038 said in More space at the left of the first column:

      With recent versions of Notepad++, you benefit from the change history thin margin which helps to place the caret at column 1 !

      Not really - clicking on that column selects the full line, but the OP just wants to move the cursor to the beginning of the line. Your other solution works better for this.

      1 Reply Last reply Reply Quote 0
      • guy038G
        guy038
        last edited by

        Hello, @gerardo-giordano, @alan-kilborn, @tbugreporter and All,

        I do think it’s easier to move at beginning of a line with this new margin. To be convinced, just disable the Display Change History option at bottom of the Settings > Preferences... > Margin/border/Edge panel. Select the default zoom value or values below and compare !


        Now, @tbugreporter, you said :

        Not really - clicking on that column selects the full line,…

        You’re perfectly right !

        But, in case you click on the Change History margin by mistake, simply hit the Left Arrow key to move the caret at beginning of the EXPECTED line !

        Note that this work-around is correct even if the Word Wrap feature is set !

        Best Regards,

        guy038

        Alan KilbornA 1 Reply Last reply Reply Quote 0
        • Alan KilbornA
          Alan Kilborn @guy038
          last edited by

          I’m confused by this “click the margin” stuff.

          Yes, clicking the Change History will select the line of the click in its entirety, including the line-ending, so the caret will be put in the first column of the following line.

          But the Change History margin is narrower (harder to hit) than the Line Number margin, which does the same thing and has for years – probably since the very beginnings of N++.

          BUT…OP didn’t want to select the whole line, they just wanted to move to column 1. I know this topic concerns the mouse, but why not just press the Alt+Home keycombo to do this? Caret moves to column 1, no selection is created.

          1 Reply Last reply Reply Quote 0
          • Alan KilbornA
            Alan Kilborn @Gerardo Giordano
            last edited by

            @Gerardo-Giordano said in More space at the left of the first column:

            c. great gray space (I think maybe 28px)
            Maybe also a good idea to reduce the field c. to give more space to the white field.

            There are good reasons for the width of the various margins; you are apparently too new to Notepad++ to know all of the uses.

            The “great grey space” is actually 2 margins, the aforementioned Change History margin on the right, and the Bookmark margin on the left.

            BTW, it is IMO poor design that the default background color for these two margins is the same or very close to the same; visually for me they are indistinguishable (so it does indeed appear as “great gray space (I think maybe 28px)”).

            1 Reply Last reply Reply Quote 0
            • guy038G
              guy038
              last edited by guy038

              Hi, @alan-kilborn and All,

              You said :

              I know this topic concerns the mouse, but why not just press the Alt+Home keycombo to do this? Caret moves to column 1, no selection is created.

              The shortcut Alt + Home works as expected if the Word Wrap feature is disabled. But, when this feature is set, the best is to hit two times on the Home key ( and sometimes three times if current line contains leading spaces/tab characters ! ) depending on the caret location within current line

              BR

              guy038

              Alan KilbornA 1 Reply Last reply Reply Quote 0
              • Alan KilbornA
                Alan Kilborn @guy038
                last edited by Alan Kilborn

                @guy038

                Is it possible that there is no (N++ assignable) Scintilla command to move the caret to column 1 of the current line, absolutely, with a single action on the keyboard?

                I think I tried them all, but maybe I missed it??

                If I didn’t miss it, then I think I made it work with this sequence (it’s macro-recordable):

                First (and one-time only), assign a keycombo to the SCI_VCHOME Scintilla command in Shortcut Mapper.

                • (start macro recording)
                • Invoke the SCI_VCHOME command via your keycombo
                • Press the up arrow key
                • Press the End key
                • Press the right arrow key
                • (end macro recording)

                A limitation of this technique is that this won’t work if invoked on line 1.

                1 Reply Last reply Reply Quote 0
                • guy038G
                  guy038
                  last edited by

                  Hello, @alan-kilborn and All,

                  Alan, no need to define a macro for this task. Simply affects a shortcut to the Scintilla command SCI_HOME !

                  In all cases, even in line 1, the caret will be moved at column 1 of current line ;-))

                  Best Regards,

                  guy038

                  Alan KilbornA 1 Reply Last reply Reply Quote 3
                  • Alan KilbornA
                    Alan Kilborn @guy038
                    last edited by

                    @guy038 said in More space at the left of the first column:

                    Simply affects a shortcut to the Scintilla command SCI_HOME

                    Ach. How could I have mis-tested that one??
                    It seems that you are correct.

                    1 Reply Last reply Reply Quote 1
                    • guy038G
                      guy038
                      last edited by guy038

                      Hi, @alan-kilborn and All,

                      … And to get the very end of current line, in all cases, affect a shortcut to the Scintilla command SCI_LINEEND !

                      BR

                      guy038

                      Alan KilbornA 1 Reply Last reply Reply Quote 1
                      • Alan KilbornA
                        Alan Kilborn @guy038
                        last edited by Alan Kilborn

                        @guy038 said in More space at the left of the first column:

                        And to get the very end of current line, in all cases, affect a shortcut to the Scintilla command SCI_LINEEND

                        That reminds me of some related discussion as part of this thread: https://community.notepad-plus-plus.org/topic/23381

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