Community
    • Login

    Perl sigils: select sigils as part of variable with Double Click and Shift+Left/Right Arrows

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 1.1k Views 2 Watching
    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.
    • gapsfG Offline
      gapsf
      last edited by

      Let consider Perl code like:
      $var_name = 5;
      @var_name =(1, 5);
      %var_name = (a => 5);
      $coderef = &var_name;

      As for now when I double click on ‘var_name’ NPP selects ‘var_name’ part of line only, but not $@%& symbols.

      If I try to select ‘var_name’ by pressing ‘Shift+ Left Arrow’ when cursor at the end (or just after) of the ‘var_name’ NPP also selects
      only part of the string without $@%& symbols.

      Is it possible to configure NPP to select $@%& symbols as a part of the identifier (word) for specific languages, not globally?

      Scott SumnerS 1 Reply Last reply Reply Quote 1
      • AZJIO AZJIOA Offline
        AZJIO AZJIO
        last edited by

        And why separately? Are they interfering?

        1 Reply Last reply Reply Quote 0
        • Scott SumnerS Offline
          Scott Sumner @gapsf
          last edited by

          @gapsf

          Where you say “Shift+Arrow” don’t you mean “Shift+Ctrl+Arrow”?

          Maybe the following will help you:

          Invoke Settings menu and choose Preferences…, then:

          Imgur

          In the screenshot I only added $…add others as you like.

          gapsfG 1 Reply Last reply Reply Quote 4
          • gapsfG Offline
            gapsf @Scott Sumner
            last edited by

            @Scott-Sumner
            Yep, “Shift+Ctrl+Arrow”.
            Your advice helped.

            1 Reply Last reply Reply Quote 2

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors