• Login
Community
  • Login

Select links by double clicking them? (or a specific part of them?)

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 2 Posters 2.3k 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.
  • C
    Caribou Ailé
    last edited by Aug 9, 2018, 12:20 PM

    Hello,

    I would like to know if there is a way to select a link easily with a double click. I haven’t found out anything about this so far!

    When you have many to modify in big text docs, it can save you a lot of time.

    Selecting link with the usual "drag cursor " way is not very convenient, and often screws up with horizontal scrolling for long links.

    Thanks!

    S 1 Reply Last reply Aug 9, 2018, 12:24 PM Reply Quote 2
    • S
      Scott Sumner @Caribou Ailé
      last edited by Aug 9, 2018, 12:24 PM

      @Caribou-Ailé

      How about a single click? Go to Settings (menu) and choose Preferences… and then:

      Imgur

      1 Reply Last reply Reply Quote 2
      • S
        Scott Sumner
        last edited by Scott Sumner Aug 9, 2018, 12:27 PM Aug 9, 2018, 12:26 PM

        Ahhh…maybe you just want to select them in Notepad++, not goto them…the problem with easily selecting them is defining a pattern for them that works for all possible links…if you can do that, then there is a reasonable way to select them.

        1 Reply Last reply Reply Quote 2
        • C
          Caribou Ailé
          last edited by Aug 9, 2018, 12:41 PM

          Thanks Scott for your quick answer!

          But you’re right, the problem is to select them, not to go to the link ^^

          the pattern would be selct between “” (“link”). That should work without problems, but i haven’t seen where I can set this .

          PS: excuse me, I needed to wait 1200 seconds to answer as a new user :/

          S 1 Reply Last reply Aug 9, 2018, 1:12 PM Reply Quote 2
          • S
            Scott Sumner @Caribou Ailé
            last edited by Aug 9, 2018, 1:12 PM

            @Caribou-Ailé

            PS: excuse me, I needed to wait 1200 seconds to answer as a new user :/

            The wait is OVER! I have given you 2 upvotes. :-)

            the pattern would be selct between “” (“link”).

            Links in general aren’t surrounded by ". Are you saying that for your case, they always are? If so, then as long as you are slightly in front of a link, you could perform this search and it will leave your link-text selected (what is inside the double-quotes), assuming well-formed links of course:

            Find what zone: (?<=")[^"]+
            Backward direction: unticked
            Search mode: Regular expression

            You could record this into a macro and bind it to a keycombo for maximum ease-of-use.

            1 Reply Last reply Reply Quote 3
            • C
              Caribou Ailé
              last edited by Aug 9, 2018, 1:17 PM

              Thanks a lot for your answer and the upvotes!

              I forgot to mention it was HTML links, that’s why they where between “”.

              In order to not select other HTML code, I have modified to (?<=href=“)[^”]+ and it works like a charm, thanks a lot!

              I will see how to make a macro!

              1 Reply Last reply Reply Quote 2
              • C
                Caribou Ailé
                last edited by Caribou Ailé Aug 9, 2018, 1:24 PM Aug 9, 2018, 1:22 PM

                It works perfectly, great!

                Thank you again!

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