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



On Fri, 2007-11-30 at 08:05 +1100, andrew edwards wrote:
> 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. 

The word splitting algorithms lie in Pango, and the behaviour is
inherited by gedit through GTK+ and its GtkTextView widget. Thus, it is
not easily replaceable since I think Pango misses hooks to customise
that behaviour.

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

Actually this is much more complicated. It is also locale-dependent.




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