• Login
Community
  • Login

Same action on the (same) highlighted sections

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
10 Posts 5 Posters 503 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.
  • G
    Gian Matteo
    last edited by Gian Matteo Mar 7, 2024, 11:13 AM Mar 7, 2024, 11:13 AM

    Hi fellows,

    I use the Highlighting feature without the “Match whole word” option.

    Iwould like to perform the same action on all the highlighted strings, let’s say click Del, or pressing a char to replace not only the original highlight but also all the remaing ones.

    I do remember having done this in the past, but maybe I’m wrong…

    P.S.: I posted the question because no help by googling, it is difficult to find the right keywords imo

    Thank you

    A 1 Reply Last reply Mar 7, 2024, 11:58 AM Reply Quote 0
    • A
      Alan Kilborn @Gian Matteo
      last edited by Alan Kilborn Mar 7, 2024, 12:15 PM Mar 7, 2024, 11:58 AM

      @Gian-Matteo said in Same action on the (same) highlighted sections:

      same action on all the highlighted strings

      Sorry, no actions are currently possible on these strings of text, as the “Smart Highlighting” effect is only a visual one.

      Notepad++ has scripting plugins, which could make such a thing possible, but it can’t do it on its own.

      G P 2 Replies Last reply Mar 7, 2024, 12:08 PM Reply Quote 1
      • G
        Gian Matteo @Alan Kilborn
        last edited by Mar 7, 2024, 12:08 PM

        @Alan-Kilborn thanks a lot friend, that’s so useful advice, at least I will stop loosing my time trying to remember how I… did(n’t) do it

        1 Reply Last reply Reply Quote 1
        • P
          PeterJones @Alan Kilborn
          last edited by Mar 7, 2024, 1:56 PM

          @Alan-Kilborn said in Same action on the (same) highlighted sections:

          no actions are currently possible on these strings of text, as the “Smart Highlighting” effect is only a visual one.

          Maybe I’ve misunderstood the original requirements. But if I’m right, after selecting one, which activates Smart Highlighting on the others, @Gian-Matteo should be able to use the new Edit > Multi-Select All > … family of actions to then multi-select all the words that were Smart Highlighted. Once they are multi-selected, then “click Del, or pressing a char to replace” will act on all of them, not just the first.

          A 1 Reply Last reply Mar 7, 2024, 7:20 PM Reply Quote 1
          • A
            Alan Kilborn @PeterJones
            last edited by Mar 7, 2024, 7:20 PM

            @PeterJones said in Same action on the (same) highlighted sections:

            Multi-Select All

            Good call. I haven’t delved into the relatively new multi-editing capabilities, probably because of the potential conflicts with the age-old column block selection behavior.

            P 1 Reply Last reply Mar 7, 2024, 7:27 PM Reply Quote 0
            • P
              PeterJones @Alan Kilborn
              last edited by Mar 7, 2024, 7:27 PM

              @Alan-Kilborn said in Same action on the (same) highlighted sections:

              I haven’t delved into the relatively new multi-editing capabilities, probably because of the potential conflicts with the age-old column block selection behavior.

              v8.6.4 with Multi-Select enabled and Column-to-Multi disabled behaves just like pre-8.6 with multi-select enabled, except it also has the new menu entries which allow extending the multi-selection easily; so it allows for reasonable column-select behavior while still allowing the new menu for multi-select: I’m quite happy with the current state. (The interim versions, on the other hand, where column-selects magically and unexpectedly became multi-selects were completely unusable for me.)

              C 1 Reply Last reply Mar 7, 2024, 7:30 PM Reply Quote 2
              • C
                Coises @PeterJones
                last edited by Mar 7, 2024, 7:30 PM

                @PeterJones said in Same action on the (same) highlighted sections:

                behaves just like pre-8.6

                … aside from the broken improved Ctrl+drag.

                A 1 Reply Last reply Mar 7, 2024, 7:41 PM Reply Quote 2
                • A
                  Alan Kilborn @Coises
                  last edited by Mar 7, 2024, 7:41 PM

                  @Coises said in Same action on the (same) highlighted sections:

                  aside from the … Ctrl+drag

                  If I’m not mistaken, that “simply” requires retraining yourself on proper key-lifting at the appropriate time. :-)

                  Or, is there more to it?

                  A 1 Reply Last reply Mar 7, 2024, 9:40 PM Reply Quote 0
                  • A
                    Andi Kiissel @Alan Kilborn
                    last edited by Mar 7, 2024, 9:40 PM

                    @Alan-Kilborn said in Same action on the (same) highlighted sections:

                    …requires retraining yourself on proper key-lifting at the appropriate time…

                    So Ctrl+Shift+… and Shift+Ctrl+… different behaviour would be acceptable too…
                    Sorry, not for me.

                    A 1 Reply Last reply Mar 7, 2024, 9:56 PM Reply Quote 0
                    • A
                      Alan Kilborn @Andi Kiissel
                      last edited by Mar 7, 2024, 9:56 PM

                      @Andi-Kiissel said in Same action on the (same) highlighted sections:

                      So Ctrl+Shift+… and Shift+Ctrl+… different behaviour would be acceptable too…
                      Sorry, not for me.

                      Sorry, don’t know what you mean.

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