Community

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

    Mark lines with blue balls and jump between them

    General Discussion
    7
    10
    935
    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 Ody
      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 R 1 Reply Last reply Reply Quote 0
      • Terry R
        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 3
        • guy038
          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 R Alan Kilborn 2 Replies Last reply Reply Quote 0
          • Terry R
            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

            1 Reply Last reply Reply Quote 0
            • guy038
              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

              astrosofista Terry R 2 Replies Last reply Reply Quote 0
              • astrosofista
                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 R
                  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 Kilborn
                    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-finkelstein 1 Reply Last reply Reply Quote 1
                    • artie-finkelstein
                      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 Brooks
                        Catrin Brooks Banned 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
                        • First post
                          Last post
                        Copyright © 2014 NodeBB Forums | Contributors