• Login
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 861 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
    gapsf
    last edited by Oct 4, 2018, 9:00 AM

    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?

    S 1 Reply Last reply Oct 4, 2018, 12:29 PM Reply Quote 1
    • A
      AZJIO AZJIO
      last edited by Oct 4, 2018, 10:29 AM

      And why separately? Are they interfering?

      1 Reply Last reply Reply Quote 0
      • S
        Scott Sumner @gapsf
        last edited by Oct 4, 2018, 12:29 PM

        @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.

        G 1 Reply Last reply Oct 4, 2018, 5:29 PM Reply Quote 4
        • G
          gapsf @Scott Sumner
          last edited by Oct 4, 2018, 5:29 PM

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

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