Hi all,
Love the IDE, it is exactly the sort of IDE I was looking for. My only noteworthy issue was the low resolution of the icon, it doesn't good at all in things like AWN(affinity window navigator). So I drew a quick replacement in Inkscape, would you be interested? I'll release the drawings under Creative Commons 3.0 attribution if so. Attached is a scaled preview, and here are some links to full size files.
Inkscape SVG: http://www.piedmontcomputinggroup.com/files/geany.svg Full Size PNG: http://www.piedmontcomputinggroup.com/files/geany.png
-John
Autocompletion.conf expansions don't work if there is text on the line after the expansion point. Is there a way to fix this? They work fine on empty lines or at the end of a line. I'm using build 1851.
Many thanks,
Steve
On Tue, 4 Sep 2007 23:12:32 -0600, Steve steve@trinidadgraphics.com wrote:
Autocompletion.conf expansions don't work if there is text on the line after the expansion point. Is there a way to fix this? They work fine on empty lines or at the end of a line. I'm using build 1851.
This is a feature not a bug. We discussed this partly on this list[1]. IMO it is better to not auto complete if the cursor is not at the end of a line.
I attached a simple patch which just disables the check for existing characters right of the cursor.
[1] http://lists.uvena.de/pipermail/geany/2007-June/001134.html
Regards, Enrico
On Wed, 5 Sep 2007 21:52:36 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
On Tue, 4 Sep 2007 23:12:32 -0600, Steve steve@trinidadgraphics.com wrote:
Autocompletion.conf expansions don't work if there is text on the line after the expansion point. Is there a way to fix this? They work fine on empty lines or at the end of a line. I'm using build 1851.
This is a feature not a bug. We discussed this partly on this list[1]. IMO it is better to not auto complete if the cursor is not at the end of a line.
Out of curiosity, why?
I attached a simple patch which just disables the check for existing characters right of the cursor.
Thank you. The patch solves my problem.
On Wed, 5 Sep 2007 17:12:20 -0600, Steve steve@trinidadgraphics.com wrote:
On Wed, 5 Sep 2007 21:52:36 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
On Tue, 4 Sep 2007 23:12:32 -0600, Steve steve@trinidadgraphics.com wrote:
Autocompletion.conf expansions don't work if there is text on the line after the expansion point. Is there a way to fix this? They work fine on empty lines or at the end of a line. I'm using build 1851.
This is a feature not a bug. We discussed this partly on this list [1]. IMO it is better to not auto complete if the cursor is not at the end of a line.
Out of curiosity, why?
Because it may confuse too much when accidentally hitting [Tab] (or whatever the auto completion is bound to) and is probably very unexpected.
Regards, Enrico
On Thu, 6 Sep 2007 18:35:33 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 5 Sep 2007 21:52:36 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
This is a feature not a bug. We discussed this partly on this list [1]. IMO it is better to not auto complete if the cursor is not at the end of a line.
Out of curiosity, why?
Because it may confuse too much when accidentally hitting [Tab] (or whatever the auto completion is bound to) and is probably very unexpected.
Fair enough, but I think I'd have to argue that Geany's target users are not so easily confused as that. If we we were talking about Leafpad or Kwrite then, yes, I'd agree.
For what it's worth, I was confused by the current behavior. I spent an hour or so tinkering, sure I was doing something wrong, since (1) it was behaving in an obviously inconsistent way and (2) it didn't work the way the docs say it does ("Everytime you write myname <TAB> in Geany...").
Anyway, thanks again for the patch. With the patch applied, autocomplete does exactly what I need it to.
Regards,
Stveve
Steve wrote:
On Thu, 6 Sep 2007 18:35:33 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 5 Sep 2007 21:52:36 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
This is a feature not a bug. We discussed this partly on this list [1]. IMO it is better to not auto complete if the cursor is not at the end of a line.
Out of curiosity, why?
Because it may confuse too much when accidentally hitting [Tab] (or whatever the auto completion is bound to) and is probably very unexpected.
Fair enough, but I think I'd have to argue that Geany's target users are not so easily confused as that. If we we were talking about Leafpad or Kwrite then, yes, I'd agree.
For what it's worth, I was confused by the current behavior. I spent an hour or so tinkering, sure I was doing something wrong, since (1) it was behaving in an obviously inconsistent way and (2) it didn't work the way the docs say it does ("Everytime you write myname <TAB> in Geany...").
Anyway, thanks again for the patch. With the patch applied, autocomplete does exactly what I need it to.
Regards,
Stveve
Ah, that's why it often doesn't work! I was planning on filing a bug about autocompletion not working sometimes. There must have been a space or tab on the line already!
This also explains why the autocompletion of my full name didn't work last week. I was editing a text file and wanted to insert my full name in my comments (Har<tab>)...
I still find it very strange that this is a 'feature', especially because the auto completion only works when entering a specific text and pressing the auto complete button (tab). This will almost never happen accidentally, I presume...
Well, patching it is! (every time ;( )
-H-
On Thu, 06 Sep 2007 22:13:08 +0200, Harold Aling h.aling@home.nl wrote:
[autocompletion behaviour]
Ah, that's why it often doesn't work! I was planning on filing a bug about autocompletion not working sometimes. There must have been a space or tab on the line already!
This also explains why the autocompletion of my full name didn't work last week. I was editing a text file and wanted to insert my full name in my comments (Har<tab>)...
I still find it very strange that this is a 'feature', especially because the auto completion only works when entering a specific text and pressing the auto complete button (tab). This will almost never happen accidentally, I presume...
So you suggest to change the behaviour like the patch does?
Well, patching it is! (every time ;( )
You don't have to patch it every time when you use the SVN version. Just do an "svn update" and the changed file get merged with upstream changes. But that's another topic ;-).
Regards, Enrico
On Fri, 7 Sep 2007 18:01:09 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
I still find it very strange that this is a 'feature', especially
because the auto completion only works when entering a specific text and pressing the auto complete button (tab). This will almost never happen accidentally, I presume...
So you suggest to change the behaviour like the patch does?
To my mind the patched behavior---the abbreviations expanding anywhere if surrounded by word boundaries---is exactly right.
The word boundary check is a good thing, and I would think adequate to prevent accidental invocation. It also keeps the abbreviations from colliding with each other.
Regards,
Steve
On 06/09/07 21:13:08, Harold Aling wrote:
Ah, that's why it often doesn't work! I was planning on filing a bug about autocompletion not working sometimes. There must have been a space or tab on the line already!
I've just fixed this so that trailing space on a line is now ignored, and autocompletion will work.
This also explains why the autocompletion of my full name didn't work last week. I was editing a text file and wanted to insert my full name
in my comments (Har<tab>)...
I've now added a hidden preference in the SVN version, auto_complete_whilst_editing, which when set to true should allow what you want, instead of having to patch Geany. Either quit Geany and use another editor to edit ~/.geany/geany.conf, or do it the hard way:
From Geany, edit ~/.geany/geany.conf, then start another instance, then quit the first instance (this prevents the file being overwritten when Geany quits).
I still find it very strange that this is a 'feature', especially because the auto completion only works when entering a specific text and pressing the auto complete button (tab). This will almost never happen
accidentally, I presume...
Some people configure auto completion to use space, then it's annoying to get e.g. 'if' autocompleted when editing an existing if statement.
Regards, Nick
On 09/06/2007 05:35:33 PM, Enrico Tröger wrote:
On Wed, 5 Sep 2007 17:12:20 -0600, Steve steve@trinidadgraphics.com wrote:
On Wed, 5 Sep 2007 21:52:36 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
On Tue, 4 Sep 2007 23:12:32 -0600, Steve steve@trinidadgraphics.com wrote:
Autocompletion.conf expansions don't work if there is text on the line after the expansion point. Is there a way to fix this? They work fine on empty lines or at the end of a line. I'm
using
build 1851.
This is a feature not a bug. We discussed this partly on this
list
[1]. IMO it is better to not auto complete if the cursor is not
at
the end of a line.
Out of curiosity, why?
Because it may confuse too much when accidentally hitting [Tab] (or whatever the auto completion is bound to) and is probably very unexpected.
When I first added this behaviour, it was when the default autocompletion was triggered just by typing space. So I added it so the autocompletion wasn't triggered when e.g. typing 'if' at the start of a line that already had text on it.
Now I can't really think of a situation where this is necessary. Are there any real situations where this is a problem?
Also, if it is useful, maybe we should add a (possibly hidden) preference to disable it.
Regards, Nick
How do I apply the patch? I install using the Synaptic Package Manager with Ubuntu so I may be a bit "out of it".
Thanks, Lee
On Wed, 5 Sep 2007 21:52:36 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
| On Tue, 4 Sep 2007 23:12:32 -0600, Steve steve@trinidadgraphics.com | wrote: | | > Autocompletion.conf expansions don't work if there is text on | > the line after the expansion point. Is there a way to fix this? They | > work fine on empty lines or at the end of a line. I'm using build | > 1851. | This is a feature not a bug. We discussed this partly on this list[1]. | IMO it is better to not auto complete if the cursor is not at the end | of a line. | | I attached a simple patch which just disables the check for existing | characters right of the cursor. | | [1] http://lists.uvena.de/pipermail/geany/2007-June/001134.html | | Regards, | Enrico |
On 09/06/2007 03:07:31 AM, Lee Underwood wrote:
How do I apply the patch? I install using the Synaptic Package Manager with Ubuntu so I may be a bit "out of it".
It's a source patch - so you'd have to build Geany from source, after patching it. Also it may only apply to recent SVN.
cd geanypath patch -p0 < code.patch
Regards, Nick
On Thu, 06 Sep 2007 11:54:57 +0100, Nick Treleaven nick.treleaven@btinternet.com wrote:
On 09/06/2007 03:07:31 AM, Lee Underwood wrote:
How do I apply the patch? I install using the Synaptic Package Manager with Ubuntu so I may be a bit "out of it".
It's a source patch - so you'd have to build Geany from source, after patching it. Also it may only apply to recent SVN.
For more information about getting and building Geany from source read the description[1] on Geany's website.
[1] http://geany.uvena.de/Download/SVN
Regards, Enrico
On Tue, 04 Sep 2007 18:34:42 -0400, John jpwarren00@gmail.com wrote:
Hi,
Love the IDE, it is exactly the sort of IDE I was looking for. My only noteworthy issue was the low resolution of the icon, it doesn't good at all in things like AWN(affinity window navigator). So I drew a quick replacement in Inkscape, would you be interested? I'll
Thank you very much. It looks great. We already discussed about a new icon on [1]. I guess we will use the Tango icon. Any comments?
[1] http://lists.uvena.de/pipermail/geany/2007-June/001165.html
Regards, Enrico