• Login
Community
  • Login

Search -> Jump Up/Down -> Find Style

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
10 Posts 3 Posters 6.8k 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.
  • A
    Alan Kilborn
    last edited by Feb 16, 2017, 7:12 PM

    I have been unable to figure out what these menu commands do; can someone enlighten me?

    Search (menu) -> Jump Up -> Find Style

    and probably very similar:

    Search (menu) -> Jump Down -> Find Style

    1 Reply Last reply Reply Quote 0
    • C
      cmeriaux
      last edited by Feb 16, 2017, 9:40 PM

      It’s allows you to navigate easily between words marked with style 1/2/3/4 or 5.
      This is my favorite feature of NPP
      Example of marked word: http://hpics.li/13dbc38

      A 1 Reply Last reply Feb 17, 2017, 1:21 AM Reply Quote 0
      • A
        Alan Kilborn @cmeriaux
        last edited by Feb 17, 2017, 1:21 AM

        @cmeriaux

        Interesting. Invoking these commands has never done anything for me, even when having text marked with style #1 - #5. Is there anything more to it, that maybe I’m not doing right?

        1 Reply Last reply Reply Quote 0
        • C
          cmeriaux
          last edited by Feb 17, 2017, 6:51 AM

          there is no trick to use this command. This is like a “find next” or “find previous” on marked word

          A 1 Reply Last reply Feb 17, 2017, 1:44 PM Reply Quote 1
          • A
            Alan Kilborn @cmeriaux
            last edited by Feb 17, 2017, 1:44 PM

            @cmeriaux

            Thanks for your persistence in answering, but I still don’t see any effect from this command. When I tried it before your last post, I was doing it without a selection active (what I think you mean by “marked”). However, trying that again now with a selection active still has no effect (no caret movement when I invoke “Find Style”). Note that if I attempt to Jump Up or Down to a specific style number (#1 - #5 versions of the Jump Up/Down command), it works fine to take me to the previous/next text marked with that specific style number.

            So I’m still left wondering what “Find Style” actually does, or why it doesn’t work for me. Logically, I would think it would jump to ANY styled text, but…

            Any other ideas, as I’d really like to understand this, since we’ve gone this far.

            BTW, using N++ 7.2.2 32-bit, but this has been the same when I’ve tried it in earlier versions as well, at least since 6.7.*

            1 Reply Last reply Reply Quote 0
            • C
              cmeriaux
              last edited by Feb 17, 2017, 4:37 PM

              Sorry I misunderstood your original question. I don’t have the answer but I’m curious. I’ll check in the code

              1 Reply Last reply Reply Quote 0
              • G
                guy038
                last edited by Feb 18, 2017, 11:43 AM

                Hi Alan and All,

                To my mind, the answer seems so easy that I think, as cmeriaux, that I misunderstand your question, too ! Anyway, it give it a try …

                • Open, for instance, the N++ “license.txt” file

                • Open the Mark dialog ( Search > Mark… )

                • Type, for instance, software in the Find what: zone

                • Click on the Mark All button

                => All instances of the string "software" should get highlighted, in red

                Then, using the Search > Jump Down > Find style ( CTRL + 0 ) OR the Search > Jump up > Find style ( CTRL + SHIFT + 0 ), you should move to the next / previous red marked occurrence of the string software :-) Et voilà !

                Best Regards,

                guy038

                A 1 Reply Last reply Feb 18, 2017, 1:17 PM Reply Quote 3
                • A
                  Alan Kilborn @guy038
                  last edited by Feb 18, 2017, 1:17 PM

                  @guy038

                  Well, there it is…the answer. Thank you, Mr Guy. For years I have semi-wondered about what these “mystery commands” actually did.

                  I am glad to have the answer, but I am still mind-blown as to how you knew that that’s what these command did. It is entirely unobvious to me that “Find Style” would do what it actually does. The simple addition of one word to it would go a long way towards making it obvious: “Find Marked Style”!

                  Also I’d like to note that @cmeriaux did indeed hold the answer when he said earlier "This is like a “find next” or “find previous” on marked word", but I don’t think that at the time he or I really understood that “marked” meant truly “(red)marked”. Or, maybe he did and I just confused him with my followup.

                  1 Reply Last reply Reply Quote 0
                  • G
                    guy038
                    last edited by Feb 19, 2017, 10:51 PM

                    Hello Alan,

                    Can’t remember, exactly, how and when I understood the purpose of the Find Style jump commands. I suppose it came to my mind, after looking at the Style Configurator dialog, in Settings ! Indeed :

                    • Choose the menu option Settings > Style Configurator…

                    • In the Language drop-down list, select the first choice Global styles

                    • In the Style list, you should notice the consecutive lines :

                      • Find Mark Style ( with a Red background color )

                      • Mark Style 1 ( with a Light Blue background color )

                      • Mark Style 2 ( with an Orange background color )

                      • Mark Style 3 ( with a Yellow background color )

                      • Mark Style 4 ( with a Dark Blue background color )

                      • Mark Style 5 ( with a Dark Green background color )

                    Et voilà !

                    Cheers,

                    guy038

                    1 Reply Last reply Reply Quote 0
                    • C
                      cmeriaux
                      last edited by Feb 20, 2017, 5:42 PM

                      @guy038 thanks for your answer that is as good as your reputation is.

                      @Alan-Kilborn I knew the answer, then I forgot, then and answered you accidentally.
                      I used to use “Mark” a lot, now I don’t. I only use the “Find style”. In the Npp core, it’s the same things

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