Re: [gedit-list] selecting whole words when variables



Thanks Curtis - have done.

I downloaded the source to see if I could find anything relevant - but without much luck. If any devs could point me in the right direction of where the mouse selection take place in the code that would be cool.

i imagine its considering a word to be either [A-Za-z] or [0-9] or [_] or [any other special character] as it will also break on these items. My preferred option would be a word is anything within any type of bracket or spaces.

Cheers

Andrew


On Nov 30, 2007 12:36 AM, Curtis Hovey <sinzui is verizon net> wrote:

On Thu, 2007-11-29 at 16:09 +1100, andrew edwards wrote:
> Hello
>
> Is it possible to add some config to gedit so that when double
> clicking the following words, the whole word is selected and not just
> the text component:
>
> $foo  (double click on foo and only foo is selected - would prefer
> $foo to be selected)
> $foo_bar (double click on foo and only foo is selected - would prefer
> $foo_bar to be selected)
>
> I snooped around various gedit files on my system, but could not find
> anything I thought was relevant

It is not configurable. Though the current behaviour is arguably a bug
since underscore is used as a non-breaking space in most places it is
used. I'd like selection to work as you suggest. File a bug.

--

__C U R T I S  C.  H O V E Y_______
Guilty of stealing everything I am.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]