Let's see following example:
I have written self.getFullName(). I want to change it to self.getShortName(). I set pointer before 'F', delete Full and start typing. Immediately appears completion - I hit enter. I received self.getShortNameName(). Could you change it, so I it would reuse following characters too?
On Fri, 5 Dec 2008 12:10:50 +0100 "Filip Gruszczyński" gruszczy@gmail.com wrote:
I have written self.getFullName(). I want to change it to self.getShortName(). I set pointer before 'F', delete Full and start typing. Immediately appears completion - I hit enter. I received self.getShortNameName(). Could you change it, so I it would reuse following characters too?
I think we could add a pref, some IDEs do this by default.
Regards, Nick
On Mon, 8 Dec 2008 12:41:55 +0000 Nick Treleaven nick.treleaven@btinternet.com wrote:
On Fri, 5 Dec 2008 12:10:50 +0100 "Filip Gruszczyński" gruszczy@gmail.com wrote:
I have written self.getFullName(). I want to change it to self.getShortName(). I set pointer before 'F', delete Full and start typing. Immediately appears completion - I hit enter. I received self.getShortNameName(). Could you change it, so I it would reuse following characters too?
I think we could add a pref, some IDEs do this by default.
I think in this case it should complete by default to self.getShortName (). Delimiters could be (, [, { and any other whitespace.
Frank
Delimiters should be anything that can't be part of an identifier.
On Tue, Dec 9, 2008 at 12:30 AM, Frank Lanitz frank@frank.uvena.de wrote:
On Mon, 8 Dec 2008 12:41:55 +0000 Nick Treleaven nick.treleaven@btinternet.com wrote:
On Fri, 5 Dec 2008 12:10:50 +0100 "Filip Gruszczyński" gruszczy@gmail.com wrote:
I have written self.getFullName(). I want to change it to self.getShortName(). I set pointer before 'F', delete Full and start typing. Immediately appears completion - I hit enter. I received self.getShortNameName(). Could you change it, so I it would reuse following characters too?
I think we could add a pref, some IDEs do this by default.
I think in this case it should complete by default to self.getShortName (). Delimiters could be (, [, { and any other whitespace.
Frank
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
I think we could add a pref, some IDEs do this by default.
This would be cool. This is something that happens quite often and could speed up my coding a bit :)
I think in this case it should complete by default to self.getShortName (). Delimiters could be (, [, { and any other whitespace.
Well, that depends on how smart Geany can become: if it can deduct, that it is a function it is completing, then starting bracket would be cool, but the trailing not so much (in Visual Studio when I code in C++ I hate this). If it could be very smart and:
* deduct, that there aren't any args and can add both brackets * deduct, that there are some args and add both brackets and then set the cursor _inside_, then it would be great; but I don't know, if it's easy to add such stuff, especially to Python. To some statically typed language it should be easier.
Still, good completions can enhance editor experience a lot, so I believe it's worth tinkering about it :-) Especially today, when many projects adopt usingVeryLongSymbols, that should be completed by the editor, otherwise they are a real pain :)