• Login
Community
  • Login

Multi-edit

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
8 Posts 4 Posters 3.1k 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 Chan
    last edited by Nov 28, 2023, 1:26 AM

    Sorry if I missed how to use this functionality.

    For instance (using the example), if I double-click “obj” they get highlighted but what I do next? Say if I wanted to add “ject” to change to “object”?

    It didn’t seem obvious looking at the GIF how to multi-carat edit. In the version I downloaded I cannot see the option in the Settings > Preferences > Editing > ☑ Enable Multi-Editing (Ctrl+Mouse click/selection) checkbox.

    A P 2 Replies Last reply Nov 28, 2023, 1:52 AM Reply Quote 1
    • A
      Alan Kilborn @Alan Chan
      last edited by Alan Kilborn Nov 28, 2023, 1:54 AM Nov 28, 2023, 1:52 AM

      @Alan-Chan said in Multi-edit:

      It didn’t seem obvious looking at the GIF how to multi-carat edit.

      That’s because is isn’t obvious.
      There probably needs to be a tutorial; the GIF alone isn’t worth much without telling people how it is done.

      In the version I downloaded I cannot see the option in the Settings > Preferences > Editing > ☑ Enable Multi-Editing (Ctrl+Mouse click/selection) checkbox.

      That checkbox has disappeared because multi-editing is enabled always as of N++ 8.6.

      A 1 Reply Last reply Nov 28, 2023, 6:51 AM Reply Quote 0
      • A
        Alan Chan @Alan Kilborn
        last edited by Nov 28, 2023, 6:51 AM

        @Alan-Kilborn
        Thanks for confirming that it’s always enabled.
        Now, where do I find how to use it? (in particular the 2nd example) rather than the column edit which I figured out.

        A 2 Replies Last reply Nov 28, 2023, 12:12 PM Reply Quote 0
        • A
          Alan Kilborn @Alan Chan
          last edited by Nov 28, 2023, 12:12 PM

          @Alan-Chan said in Multi-edit:

          Now, where do I find how to use it?

          Barring someone creating a tutorial (which I’m not going to do because I’m not much interested in the multi-editing stuff), you might have a look at the supported new commands involving it, and experimenting with them:

          b348d38c-cf30-400e-b806-b0a77c29642e-image.png

          1 Reply Last reply Reply Quote 0
          • P
            PeterJones @Alan Chan
            last edited by Nov 28, 2023, 2:52 PM

            @Alan-Chan said in Multi-edit:

            I double-click “obj” they get highlighted but what I do next? Say if I wanted to add “ject” to change to “object”?

            For the specific circumstance you described, without creating a whole tutorial

            1. Double-click a whole word instance of obj
            2. Use the Edit > Multi-Select All submenu as @Alan-Kilborn suggested
              • Match Whole Word Only would match any instance of obj or Obj, but not subobj or objuice
              • Match Case & Whole Word would match any instance of obj, but not Obj or subobj or objuice
              • this will fully select all the matches
            3. At this point, you could “type over” by just typing object, and all the selected instances will be changed.

            The User Manual will soon have brief descriptions of those new Edit-menu submenus, but that’s usually not triggered until “auto-update” is triggered – my guess is that will be happening in the near future.

            1 Reply Last reply Reply Quote 1
            • A
              Alan Kilborn @Alan Chan
              last edited by Nov 28, 2023, 2:59 PM

              @Alan-Chan

              BTW, the real-world way to use these menu commands is to tie keyboard shortcuts to the ones you’ll use with regularity. No one would actually use these commands from the menus.

              M P 2 Replies Last reply Nov 28, 2023, 3:04 PM Reply Quote 2
              • M
                Michael Vincent @Alan Kilborn
                last edited by Michael Vincent Nov 28, 2023, 3:19 PM Nov 28, 2023, 3:04 PM

                @Alan-Kilborn said in Multi-edit:

                the real-world way to use these menu commands is to tie keyboard shortcuts to the ones you’ll use with regularity

                @Alan-Chan
                For example, I use:

                Multi-select ALL => Match Case & Whole Word : Ctrl+Shift+.
                Multi-select Next => Match Case & Whole Word : Ctrl+.
                Undo the Latest Added Multi-Select : Ctrl+,
                Skip Current & Go to Next Multi-select : Ctrl+Alt+.

                The , and . because those keys also have the < and > respectively so Ctrl+. is like selecting the current word and subsequent Ctrl+. keystrokes select the next (forward in the document - as in an “arrow” to the right >) match. The Alt modifier skips the current one and the Shift modifier selects all.

                And of course when doing this, I’m 99% always expecting to match the exact word; hence, “Match Case & Whole Word”.

                Cheers.

                PS: Should also note that I had these exact keystrokes mapped to the NppExec scripts I had that did this exact functionality before it became “native” to N++, so they are muscle memory at this point as I’ve been multi-editing this way for years now.

                1 Reply Last reply Reply Quote 2
                • P
                  PeterJones @Alan Kilborn
                  last edited by PeterJones Nov 28, 2023, 3:15 PM Nov 28, 2023, 3:13 PM

                  @Alan-Kilborn said in Multi-edit:

                  No one would actually use these commands from the menus.

                  I cannot remember any more keystrokes, so I’m not likely to assign a keyboard shortcut. Instead, if I find myself wanting to use the new features, I’ll probably add them to the contextMenu.xml, so they’re just a local right-click away.

                  … But yes, if I do end up using them often, it will need to be easier access than having to move my mouse cursor up to the main menu system.

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