Dietrich Weber Heidestr. 10 56729 Arft dietrich-weber@web.de Feb. 20th, 2007
Hi,
using GEANY to write some PASCAL code I wonder if it might be possible to make the code auto completion non case sensitive. At the moment it only works when the statements are lower case, not when they are upcase.
Since the PASCAL code rules do allow the statements to be written in all possible cases (lower case, upcase, mixed in any way), it would be a help if the code auto completion would function in all these ways.
For example: I prefer to write WriteLn instead of writeln, but only in the latter version the code auto completion works.
This is not of the highest urgency though, but it would be nice.
Greetings from Arft,
Dirk Weber
Hi,
ich benutze GEANY, um damit PASCAL Code zu schreiben. Wäre es möglich, die Autovervollständigung des Codetextes unabhängig von Groß- und Kleinschreibung zu machen? Momentan funktioniert dies nur mit klein geschriebenen Befehlen, bei Großschreibung nicht.
Da die PASCAL-Syntaxregeln zulassen, dass Befehle in allen Schreibweisen (Klein-, Großschreibung und gemischt) verfasst werden dürfen, wäre eine Autovervollständigung unabhängig von Groß- und Kleinschreibung hilfreich.
Beispiel: Ich bevorzzuge die Schreibweise WriteLN statt writeln, aber nur im letzteren Fall funktioniert die Autovervollständigung.
Das hat natürlich nicht die höchste Proirität, aber es wäre hübsch.
Gruß aus Arft,
Dirk Weber
ps Schreibt/liest eigentlich hier jemand mit, der auf den Gebrauch der Deutschen Sprache mehr oder weniger zwingend angewiesen ist? Falls nicht, ich bin es auch nicht, dann könnte ich es beim Englischen belassen. dw
On Tue, 20 Feb 2007 12:48:57 +0100, Dirk Weber dietrich-weber@web.de wrote:
Hi,
using GEANY to write some PASCAL code I wonder if it might be possible to make the code auto completion non case sensitive. At the moment it only works when the statements are lower case, not when they are upcase.
How should Geany know how you want to write a command? I know camel case is quite useful for longer words but look at the following example: You start typing "writ" and Geany suggests you "write", "writeln", "writeport" and some more. So, now you like to choose "writeLn", me likes "writeln" and another guy prefers "WriteLN". So, what to choose? We could make the detection case insensitive but if you choose an item from the list it will be written as it is in the list because nobody knows in which way the current user likes to format the word. As I said, we could make the detection case insensitive but it doesn't solve your problem and would slow down typing a little bit because the string to be compared with available keywords have to be converted first in lower(or resp. upper) case. Probably it wouldn't hurt anyone but it is necessary?
ps Schreibt/liest eigentlich hier jemand mit, der auf den Gebrauch der Deutschen Sprache mehr oder weniger zwingend angewiesen ist? Falls
Question(translated): is here anybody on the list who understands only German? Answer: No, so writing posts in English and German isn't necessary. Just write English and all should be able to understand you.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
On Sun, 25 Feb 2007 17:48:18 +0100, Enrico Tröger enrico.troeger@uvena.de wrote:
Hi,
using GEANY to write some PASCAL code I wonder if it might be possible to make the code auto completion non case sensitive. At the moment it only works when the statements are lower case, not when they are upcase.
How should Geany know how you want to write a command? I know camel case is quite useful for longer words but look at the following example: You start typing "writ" and Geany suggests you "write", "writeln", "writeport" and some more. So, now you like to choose "writeLn", me likes "writeln" and another guy prefers "WriteLN". So, what to choose? We could make the detection case insensitive but if you choose an item from the list it will be written as it is in the list because nobody knows in which way the current user likes to format the word. As I said, we could make the detection case insensitive but it doesn't solve your problem and would slow down typing a little bit because the string to be compared with available keywords have to be converted first in lower(or resp. upper) case. Probably it wouldn't hurt anyone but it is necessary?
I should reread my mails before sending...forgot to mention something: Just an idea: you could modify the file data/pascal.tags(it is installed in $prefix/share/geany) and replace the lower case keywords with the camel case variants or whatever you prefer. The problem is, you have to keep this file over updates of Geany.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
Dietrich Weber Heidestr. 10 56729 Arft Tel.: 02655-942894 dietrich-weber@web.de Feb 26th, 2006
Am Sonntag, 25. Februar 2007 17:48 schrieb Enrico Tröger:
How should Geany know how you want to write a command? I know camel case is quite useful for longer words but look at the following example: You start typing "writ" and Geany suggests you "write", "writeln", "writeport" and some more. So, now you like to choose "writeLn", me likes "writeln" and another guy prefers "WriteLN". So, what to choose?
[...]
ack
My (personal) problem is that sometimes I start writing a statement upcase and sometimes lower caseSo I think I will have to be a bit more strict when it comes to statement writing in Geany.
As I wrote before, that is not such an important problem.
Greetings from Arft,
Dirk Weber