Community
    • Login

    Mark lines with blue balls and jump between them

    Scheduled Pinned Locked Moved General Discussion
    15 Posts 8 Posters 8.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.
    • Arí Ricardo OdyA
      Arí Ricardo Ody
      last edited by

      I remain far from Notepad++ for 2 years.

      There are some doubts I have.
      What option makes appear blue balls on the left of the sequence numbers(mark the line) and which are the keys that allow me jump the focus from one blue ball to another?
      Is there a key sequence that mark the line with a blue ball(instead of mouse)? Is there one that unmark the line?

      Terry RT 1 Reply Last reply Reply Quote 0
      • Terry RT
        Terry R @Arí Ricardo Ody
        last edited by

        @arí-ricardo-ody said in Mark lines with blue balls and jump between them:

        Is there a key sequence that mark the line with a blue ball(instead of mouse)? Is there one that unmark the line?

        These are called “bookmarks”. As it seems you already are aware, clicking with a mouse in the left margin (between line number and actual line content) will insert a bookmark. Ctrl-F2 will also turn on/off the bookmark. If you right click in the same area you will see an additional menu which also allows bookmarking, removal of bookmarks and also functions that deal with the bookmarked lines such as removal (deleting) them.
        F2/Shift-F2 will advance forward/backwards through the bookmarks.

        The bookmarks can also be created when searching for text in the file/tab. Using the Mark function you see a button that can be ticked called “bookmark line”. The find field will contain text (or a regular expression), and clicking on “mark all” will create bookmarks on those lines where the search pattern is found.

        Terry

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

          Hello, @ari-Ricardo-ory, @terry-r, and All,

          I wanted to give some advice to the OP when I came across something weird which might be an issue !

          @terry-r :

          You certainly know that, when you choose the Search > Style All Occurrences of Token > Using 1st Style option, after selecting the word Fix, in the change.log file, you can navigate between these occurrences with the two shortcuts : Ctrl + 1 and Ctrl + Shift + 1, on the main keyboard and, respectively, with the four other styles.

          Just a particularity : when you move in backward direction, the caret is moved, first, at the beginning of the current word fix, then if you go on backwards, the caret is then located at the beginning of the previous occurrence and so on ! So, so far so good !


          In the same way, you may know that, in order to get the Find Mark Style, you can use the two shortcuts Ctrl + 0 and Ctrl+ Shift + 0, on the main keyboard. So you can navigate between all the occurrences of marked text ! But, after a try, on my new Win 10 laptop, I’m sorry to tell you that Ctrl + 0 works correctly but the Ctrl + Shift + 0 shortcut does not !?

          To be sure, in addition to my Bluetooth keyboard, I connected an USB keyboard and the results were unfortunately identical :-( OK for Ctrl + 0 but KO for Ctrl + Shift + 0

          So, could you do some tests to verify this assumption ? Oddly, everything works correctly with my old Win XP laptop !

          Best Regards,

          guy038

          Terry RT Alan KilbornA 2 Replies Last reply Reply Quote 0
          • Terry RT
            Terry R @guy038
            last edited by

            @guy038 said in Mark lines with blue balls and jump between them:

            So, could you do some tests to verify this assumption ?

            Oddly enough I cannot get the Ctrl + 0 or Ctrl + Shift + 0 to work. I have 2 words highlighted in 2 different styles, but those shortcut keys (with the 0) don’t appear to do anything. The shortcut keys involving 1 (for first style) and 2 (for second style marked) are working to provide forwards and backwards motion.

            I won’t be able to do anymore tests for a few hours, I have to deal with the log4j vulnerability on our network. Scans have identified several issues requiring immediate attention.

            Later when I can I will use a portable version (in case my installation has issues) and see if anything further turns up with tests.

            Terry

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

              Hi, @terry-r and All,

              Terry, may be, we’re speaking, each other, about different things ! I’m not concerned with styles 1 to 5 at all but only with the Mark dialog.

              So, open the change.log tab, use the Ctrl + M shortcut, search for the word fix, in any case and click on the Mark All button. Then, use the Ctrl + 0 and Ctrl + Shift + 0 shortcuts to navigate from one occurrence of marked text to another, onwards and backward ! ( You don’t even need to tick the Bookmark line option )

              BR

              guy038

              astrosofistaA Terry RT 2 Replies Last reply Reply Quote 0
              • astrosofistaA
                astrosofista @guy038
                last edited by

                @guy038

                Did that and could navigate up and down without issues. Tested in my installed v7.9.5, with lots of plugins, and on a bare-bones portable v8.1.9.3.

                Debug info:

                Notepad++ v8.1.9.3   (64-bit)
                Build time : Dec  6 2021 - 19:21:37
                Path : D:\Applications\npp.8.1.9.3.portable.x64\notepad++.exe
                Command Line : 
                Admin mode : OFF
                Local Conf mode : ON
                Cloud Config : OFF
                OS Name : Windows 10 Pro (64-bit) 
                OS Version : 2009
                OS Build : 19042.1415
                Current ANSI codepage : 1252
                Plugins : mimeTools.dll NppConverter.dll NppExport.dll 
                

                Hope this helps

                1 Reply Last reply Reply Quote 1
                • Terry RT
                  Terry R @guy038
                  last edited by

                  @guy038 said in Mark lines with blue balls and jump between them:

                  Terry, may be, we’re speaking, each other, about different things ! I’m not concerned with styles 1 to 5 at all but only with the Mark dialog.

                  Sorry, I don’t do much marking with styles, hence why I got confused with your first post. You had talked about style marking then jumped to the mark function (different) but I didn’t notice that, on a re-read I do now.

                  So back to testing I cannot get the Ctrl + Shift + 0 to work. This was on 3 PC’s, as 2 PC’s are under work control and may have Group Policies applied which potentially adversely affect NPP I also tried another unaffected PC. So the result was always the same, the forward jump worked, but backwards never did. One work PC and the unaffected PC were both with a portable installation.

                  So it would seem we have a problem, I won’t go so far as to say a bug, but it would seem, given @astrosofista test results there may be an environmental situation which prevents the backwards jump from working.

                  Terry

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

                    @guy038 said in Mark lines with blue balls and jump between them:

                    but the Ctrl + Shift + 0 shortcut does not !?

                    You are correct. This seems to be a long standing problem, discussed a few times BEFORE.
                    I just tested again and it still does not work for me.
                    It would be nice to have resolution to this, or more info if it works for some people and not others.

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

                      @alan-kilborn
                      just to chime in (Note: I’m still on Npp v8.1.9)-
                      Ctrl+0 works for forward move to next mark
                      Ctrl+Shift+0 doesn’t work for anything

                      I also used Nir Sofer’s HotKeysList to verify there is no system level hot key assigned to Ctrl+Shift+0.

                      1 Reply Last reply Reply Quote 2
                      • Catrin BrooksC
                        Catrin Brooks
                        last edited by

                        You’re right, sir. I’ve heard about this before, and it seems to be a long-standing issue.
                        I just tried it again, and it doesn’t work.
                        A solution to this or additional information about why it works for some and not for others would be welcome.

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

                          @Terry-R said in Mark lines with blue balls and jump between them:

                          I cannot get the Ctrl + 0 or Ctrl + Shift + 0 to work.

                          I could not get them to work either, with my new Windows 11 PC…until I unmapped something Windows had “conveniently” mapped for me. I did this, in Windows:

                          Settings > Time & Language > Language & region > Typing > Advanced keyboard settings > Input language hot keys > Advanced Key Settings > Hot keys for input languages > Action > Between input languages > Key sequence (set it to None)

                          And, after that, both Ctrl+0 and Ctrl+Shift+0 worked in Notepad++.

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

                            Hello, @alan-kilborn,

                            Pleased that your Ctrl + 0 and Ctrl + Shift + 0 shortcuts work fine, from now on, for you !

                            As for me, I still cannot get the previous bookmarked line with the Ctrl + shift + 0 shortcut, on my Widow 10 laptop, with N++ v8.5.4 portable installed :-((

                            When I open the Settings window, I can go to the Heure et langue section ( which seems identical to the first choice Time & Language )

                            6701df0b-e9b1-4bb4-b88f-05678efbb46c-image.png

                            But, at this point, I’m quite lost :

                            I personally see this screen, below. But, seemingly, you see a Language & region option, on the left side :

                            2a09e551-7998-4ca7-bce5-efbafa456ade-image.png

                            I suspect that it’s because, in the language part, below, I just have one language installed ( Français 'France ) and you probably have more than one installed in your Windows 11 installation ?

                            25cfa04a-cade-4043-b9f2-0222406b0e98-image.png

                            On the other hand, as I do not have any shortcut to switch between two Input languages, it should not interfere with Notepad++ at all and I should be able to use the cttl + Shift+ 0 shortcut !


                            Thus, Alan, could you show us, by screenshots, the first steps to do ?

                            May be, I’ll neeed to install the English (United States) language to get options similar to yours ! However, it seems paradoxal to install something… in order to suppress an unwanted behaviour !

                            Best Regards,

                            guy038

                            CoisesC Alan KilbornA 2 Replies Last reply Reply Quote 0
                            • CoisesC
                              Coises @guy038
                              last edited by Coises

                              @guy038 Try clicking the “Clavier” icon that’s in your last screenshot. The dialog that raises should have a link labeled something that translates to “Input language hot keys.”

                              If that doesn’t explain it — is the key above and just to the left of P on your keyboard à — requiring Shift to produce 0? If so, it’s possible that the way Notepad++ is reading the keystrokes to produce an accelerator is seeing Ctrl[+Shift]+`a instead of Ctrl[+Shift]+0. I haven’t yet looked at the code to see if I can tell if that would be so.

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

                                Hello, @alan-kilborn, @coises and All,

                                Yes, @coises, you were right about it ! When I clicked on the clavier icon, I got this screen :

                                e81ee672-8cfc-4d45-bdd8-4d26ed067057-image.png

                                However, ( I cannot be sure ) it seems that, before, I did hit that icon and that I did not see the two options :

                                • Options de la barre de langue

                                • Touche de raccourci de langue d'entrée

                                I must add that, at one moment, I tried to see what happens when you click on the Ajouter une langue option ( Refer the end of my previous post ) Well, you get this new screen and after choosing the Anglais (United States) option, I finally see this screen about installing this new language, that I DID NOT confirm ! May be, this abortive action was enough to enable the two options above ?

                                a1e28827-4b50-4cb1-802e-ef2b313707f2-image.png

                                93dab84e-acdb-4c45-a8f6-7a2d35415c1e-image.png


                                Anyway, after clicking on the Touche de raccourci de langue d'entrée I saw this window and after clicking on the Modifier... button, this small window appeared. As I seemed concerned with the Changer la disposition du clavier, I simply chose the Non assigned option, ( instead of Ctrl + Maj option and valid all the windows.

                                3a236c7a-21fd-4619-b52c-e4fdec1e1a9a-image.png

                                After restarting N++, everything was OK ! The funny thing is that I tried to put back the Ctrl + Maj option, for the keyboard layout, and, surprise, everything was still OK ??? I even stop and restart my laptop and it still worked fine !


                                Conclusion : I can’t remember, for sure, of the set of actions really done ! I’ve just noticed that, when you hit the Ctrl + shift + 0 shortcut, after some consecutive Ctrl + 0 hits, the caret move, first, from the end of current marked word to its beginning, then move back to the beginning of previous word and so on… !

                                Anyway, as we say in French : Tout est bien qui finit bien !

                                Best regards,

                                guy038

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

                                  @guy038 said in Mark lines with blue balls and jump between them:

                                  Thus, Alan, could you show us, by screenshots, the first steps to do ?

                                  I could (and will if you really want it), but I suspect that Windows has diverged so much in what it looks like (around the world) that doing so is of dubious value. I think it has already been shown (to me) how different your (admittedly Win10) setup appears.

                                  Conclusion : I can’t remember, for sure, of the set of actions really done !

                                  Yes, it does seem to get confusing in a hurry! :-)

                                  when you hit the Ctrl + shift + 0 shortcut, after some consecutive Ctrl + 0 hits, the caret move, first, from the end of current marked word to its beginning, then move back to the beginning of previous word and so on… !

                                  And that’s how it is supposed to work, correct?

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