[Geany] Completions in strings
Hello, Symbol completions does not seem to be working inside quoted strings. Do I need to enable something hidden to get it working properly or is it just a bug? Geany version: 0.20 on Fedora 14 Thanks in advance. Steve -- Steve Jacobs Trinidad Graphics www.trinidadcolorado.net Trinidad, CO US ___ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Re: [Geany] Completions in strings
On 10 July 2011 04:50, Steve st...@trinidadgraphics.com wrote: Hello, Symbol completions does not seem to be working inside quoted strings. Do I need to enable something hidden to get it working properly or is it just a bug? Documentation error (ie it is undocumented). This is deliberate, no autocompletion is done in comments or strings. Cheers Lex ___ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Re: [Geany] Completions in strings
On Sun, 10 Jul 2011 11:53:39 +1000 Lex Trotman ele...@gmail.com wrote: This is deliberate, no autocompletion is done in comments or strings. Why is that? In php, things like $s = $firstname $lastname works for $boss.; abound. Any reason for not making such things easy? Regards, Steve -- Steve Jacobs Trinidad Graphics www.trinidadcolorado.net Trinidad, CO US ___ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Re: [Geany] Completions in strings
On 10 July 2011 11:58, Steve st...@trinidadgraphics.com wrote: On Sun, 10 Jul 2011 11:53:39 +1000 Lex Trotman ele...@gmail.com wrote: This is deliberate, no autocompletion is done in comments or strings. Why is that? In php, things like $s = $firstname $lastname works for $boss.; abound. Any reason for not making such things easy? Dunno, its been that way for a long time. One of the original devs would have to answer that. You can always force it with the complete word keybinding (Ctrl-space) Cheers Lex ___ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Re: [Geany] Completions in strings
On Sun, 10 Jul 2011 12:46:16 +1000 Lex Trotman ele...@gmail.com wrote: On 10 July 2011 11:58, Steve st...@trinidadgraphics.com wrote: On Sun, 10 Jul 2011 11:53:39 +1000 Lex Trotman ele...@gmail.com wrote: This is deliberate, no autocompletion is done in comments or strings. Why is that? In php, things like $s = $firstname $lastname works for $boss.; abound. Any reason for not making such things easy? Dunno, its been that way for a long time. One of the original devs would have to answer that. You can always force it with the complete word keybinding (Ctrl-space) No, the keybinding is disabled in quoted strings too. Any chance this might get fixed at some point? Thanks, Steve -- Steve Jacobs Trinidad Graphics www.trinidadcolorado.net Trinidad, CO US ___ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Re: [Geany] Completions in strings
You can always force it with the complete word keybinding (Ctrl-space) No, the keybinding is disabled in quoted strings too. Any chance this might get fixed at some point? Works for me in C in both strings and comments, I don't have any PHP available, maybe someone else can check. Cheers Lex ___ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Re: [Geany] Completions
On Mon, 8 Dec 2008 12:41:55 + Nick Treleaven [EMAIL PROTECTED] wrote: On Fri, 5 Dec 2008 12:10:50 +0100 Filip Gruszczyński [EMAIL PROTECTED] 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 -- http://frank.uvena.de/en/ pgpso8FXdJI8M.pgp Description: PGP signature ___ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Re: [Geany] Completions
On Fri, 5 Dec 2008 12:10:50 +0100 Filip Gruszczyński [EMAIL PROTECTED] 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 ___ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Re: [Geany] Completions
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 :) -- Filip Gruszczyński ___ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Re: [Geany] Completions
Delimiters should be anything that can't be part of an identifier. On Tue, Dec 9, 2008 at 12:30 AM, Frank Lanitz [EMAIL PROTECTED] wrote: On Mon, 8 Dec 2008 12:41:55 + Nick Treleaven [EMAIL PROTECTED] wrote: On Fri, 5 Dec 2008 12:10:50 +0100 Filip Gruszczyński [EMAIL PROTECTED] 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 -- http://frank.uvena.de/en/ ___ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany ___ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany