Home Download Buy Blog Forum Support

How to change the scope of double-click text selection

How to change the scope of double-click text selection

Postby nickl on Wed Aug 10, 2011 9:20 am

Hi,

I'm a Perl programmer and I'm trying to figure out how to change the double-click selection behavior so that it will automatically select not just my variable names, but the sigil prefix too.

So currently, for $varname, double-clicking will select just the text e.g. $varname
Ideally I'd like it to select the prefix too e.g. $varname

Same for @varname, and %varname.

Anyone know of a way to do this?

Thanks

Edit: I'm using Sublime Text 2 btw
nickl
 
Posts: 2
Joined: Wed Aug 10, 2011 9:06 am

Re: How to change the scope of double-click text selection

Postby adzenith on Wed Aug 10, 2011 9:42 am

In your default file settings, you've got this option:
Code: Select all
   "word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?",

Take the dollar sign out.
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: How to change the scope of double-click text selection

Postby nickl on Wed Aug 10, 2011 9:58 am

That did the job!

Thanks very much for the swift reply :)
nickl
 
Posts: 2
Joined: Wed Aug 10, 2011 9:06 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 14 guests