I disagree. Do you really want Ctrl+left and Ctrl+right to skip over dots within words as if they were letters? I don't.
What's your reasoning?
Thrawn
------------------------------ On Sat, Jul 27, 2013 11:18 PM AEST Liviu Andronic wrote:
Dear devels, The filetypes.r currently shipped with Geany contains the following wordchars definition: #wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
The correct definition should be the following (dot, underscore, and alpha-numerics): wordchars=_.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
It has never been defined what a "word" is in the context of the filetype files. I would have assumed that it meant "identifier" characters, but since the wordchars setting is commented out in all filetypes files, all languages must only use C identifier characters (the default) :)
Even CSS which (correctly) has the dash added to the list is commented out. Its been that way since Enrico added the dash 5 years ago, so nobody seems to be too worried.
So Liviu and Thrawn you are pioneering new territory unless someone wants to define what a "word" actually means. Note also it can't include any Unicode chars >0x100 due to Scintilla limitations so its not possible to make it "right" on newer languages.
Cheers Lex
On 29 July 2013 09:55, Thrawn shell_layer-geany@yahoo.com.au wrote:
I disagree. Do you really want Ctrl+left and Ctrl+right to skip over dots within words as if they were letters? I don't.
What's your reasoning?
Thrawn
On Sat, Jul 27, 2013 11:18 PM AEST Liviu Andronic wrote:
Dear devels, The filetypes.r currently shipped with Geany contains the following wordchars definition: #wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
The correct definition should be the following (dot, underscore, and alpha-numerics): wordchars=_.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
On Mon, Jul 29, 2013 at 4:03 AM, Lex Trotman elextr@gmail.com wrote:
It has never been defined what a "word" is in the context of the filetype files. I would have assumed that it meant "identifier" characters, but since the wordchars setting is commented out in all filetypes files, all languages must only use C identifier characters (the default) :)
OK, I never realized that this could be contentious, so let me explain myself.
In R the set of symbols which can be used in object names is [A-Za-z0-9] and "_" and "." (with code portability and platform compatibility in mind). For more gruesome details see: http://cran.r-project.org/doc/manuals/r-release/R-intro.html#R-commands_003b... . So I assume that this is what counts for "word" in this case, as in R everything is an object. For another example of IDE, RStudio also does what I propose here, and RStudio specializes in R.
I understand that it is Geany policy to comment out this setting, so this is fine. But please do amend the list of wordchars to include the dot: #wordchars=_.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
This way I can give more straightforward instructions for R users ( http://landroni.wordpress.com/2013/07/27/using-geany-for-programming-in-r/ ) on how to fix this. And those not desiring a . or _ in the list above, will take care of those themselves while uncommenting the setting. Ultimately what a user prefers will depend on exactly that, user preference. But both options should be easily selectable.
Regards, Liviu
Personally I wish ctrl+left/right and double clicking would not include _ as word chars so I have the granularity I'm used to, even though I guess including underscore would be more correct for "words".
Could this be one of those tweakable miscilaneous properties so different people could set it how they like? (Like the "show scribble" checkbox, etc)
Sent from Yahoo! Mail on Android
On 29 July 2013 15:45, Steven Blatnick steve8track@yahoo.com wrote:
Personally I wish ctrl+left/right and double clicking would not include _ as word chars so I have the granularity I'm used to, even though I guess including underscore would be more correct for "words".
Could this be one of those tweakable miscilaneous properties so different people could set it how they like? (Like the "show scribble" checkbox, etc)
Hi Steven,
You can already tweak it since you can have edited entries in your personal filetypes.xxx which override the system ones.
Cheers Lex
Sent from Yahoo! Mail on Android
Sweet! I've changed some syntax highlighting colors, but I didn't realize the word def was in there too.
Is there a way to add highlighting to variables and escape sequences within a string? For example (perl):
print "My name is $name\n";
Where $name and/or \n are highlighted with a different color within a string. Also, I'm not at my computer, but many editors struggle with perl strings as they can be delimeted quite liberally, like qq~this~. I'll have to see if geany has some of those issues when I get a chance.
Maybe these are scintilla issues though?
Thanks for telling me word definitions are settable.
Steve
Sent from Yahoo! Mail on Android