I would like to propose a feature, which would greatly help me in coding. It's, well, borrowed ;-) from Visual Studio. In VS there is a combo box with all classes and methods, providing items like this:
BaseClass BaseClass::BaseClass BaseClass:method1 BaseClass::method2 DerivedClass DerivedClass::DerivedClass DerivedClass:method1
and so on. It's a great help, because it doesn't take much place (contrary to the whole class tree, which geany provides) and allows very quick access to any method. Is there any chance to make class tree exchangable with such a combo?
On Mon, 16 Feb 2009 22:26:07 +0100, Filip Gruszczyński gruszczy@gmail.com wrote:
I would like to propose a feature, which would greatly help me in coding. It's, well, borrowed ;-) from Visual Studio. In VS there is a combo box with all classes and methods, providing items like this:
BaseClass BaseClass::BaseClass BaseClass:method1 BaseClass::method2 DerivedClass DerivedClass::DerivedClass DerivedClass:method1
and so on. It's a great help, because it doesn't take much place (contrary to the whole class tree, which geany provides) and allows very quick access to any method. Is there any chance to make class tree exchangable with such a combo?
Do you mean something like in the attached screenshot? This is from Geany 0.3 where we had a combo box in the toolbar containing all the symbols which are also in the symbol list sidebar are shown. I don't remember the details but it caused to many troubles in the toolbar so we or I removed it. But since the whole corresponding has changed a lot since this time (this was more than 3 years ago, IIRC), maybe it's worth to give it another try. Maybe not in the toolbar but instead somewhere else. Ideas?
Regards, Enrico
Am Mittwoch, den 18.02.2009, 16:47 +0100 schrieb Enrico Tröger:
On Mon, 16 Feb 2009 22:26:07 +0100, Filip Gruszczyński gruszczy@gmail.com wrote:
I would like to propose a feature, which would greatly help me in coding. It's, well, borrowed ;-) from Visual Studio. In VS there is a combo box with all classes and methods, providing items like this:
BaseClass BaseClass::BaseClass BaseClass:method1 BaseClass::method2 DerivedClass DerivedClass::DerivedClass DerivedClass:method1
and so on. It's a great help, because it doesn't take much place (contrary to the whole class tree, which geany provides) and allows very quick access to any method. Is there any chance to make class tree exchangable with such a combo?
Do you mean something like in the attached screenshot? This is from Geany 0.3 where we had a combo box in the toolbar containing all the symbols which are also in the symbol list sidebar are shown. I don't remember the details but it caused to many troubles in the toolbar so we or I removed it. But since the whole corresponding has changed a lot since this time (this was more than 3 years ago, IIRC), maybe it's worth to give it another try. Maybe not in the toolbar but instead somewhere else. Ideas?
I think Filip meant something like that on the screenshot, not in toolbar, but as a popup right beneath the cursor. (trying to remember my last work with eclipse or visual studio, very long time ago). Geany already has such feature: When typing two, three or four chars (configurable via Preferences-Dialog), a popup with existing symbols appears. What maybe is missing, is the class before a function/method, as Filip mentioned above.
Regards, Dominic
Do you mean something like in the attached screenshot? This is from Geany 0.3 where we had a combo box in the toolbar containing all the symbols which are also in the symbol list sidebar are shown. I don't remember the details but it caused to many troubles in the toolbar so we or I removed it. But since the whole corresponding has changed a lot since this time (this was more than 3 years ago, IIRC), maybe it's worth to give it another try. Maybe not in the toolbar but instead somewhere else. Ideas?
Three years ago I was only programming in mcedit ;-)
I don't think all symbols are such a good idea. The best would be, if user could define, what he want to have displayed (classes, methods, globals, etc.) and display only those elements.
I have no idea, where else it could be put. Toolbar seems a natural place.
On Wed, 18 Feb 2009 21:16:32 +0100, Filip Gruszczyński gruszczy@gmail.com wrote:
Do you mean something like in the attached screenshot? This is from Geany 0.3 where we had a combo box in the toolbar containing all the symbols which are also in the symbol list sidebar are shown. I don't remember the details but it caused to many troubles in the toolbar so we or I removed it. But since the whole corresponding has changed a lot since this time (this was more than 3 years ago, IIRC), maybe it's worth to give it another try. Maybe not in the toolbar but instead somewhere else. Ideas?
Three years ago I was only programming in mcedit ;-)
I don't think all symbols are such a good idea. The best would be, if user could define, what he want to have displayed (classes, methods, globals, etc.) and display only those elements.
This is difficult because the types to display you want to configure are highly filetype dependent. So you would have to configure the displayed types for each filetype. As Dominic mentioned, wouldn't the symbol auto completion be very similar to what you request? It shows up whenever you start typing a known symbol (class, method name or whatever) and provide a list of known symbols for completion. This list appears by default after the fourth entered character of a known symbol but you can of course change the amount of characters needed to trigger the list. Additionally, you can trigger the list with the keyboard shortcut Ctrl-Space.
I have no idea, where else it could be put. Toolbar seems a natural place.
I don't think (anymore) that the toolbar is the best place for such a thing. Maybe it would be better in the sidebar, withinin the tab for the symbol list and place it ontop of the symbol list.
Regards, Enrico
I think there is a slight confusion. I am not talking about completion, but about jumping to the right place in file. This is why basically only classes and methods/functions would be necessary. Right now I have to use hierarchy tree on the left, but I have small screen and I always hide this tree. Toolbar is small and useful for jumping. This is how this combo is used in 2005. I am not talking about completions. Completions are cool and I use them a lot, but that's completely different thing. When I have large source file, I would like to be able to jump to the part I want to change quickly and not search for it in code or in tree.
This is difficult because the types to display you want to configure are highly filetype dependent. So you would have to configure the displayed types for each filetype.
As Dominic mentioned, wouldn't the symbol auto completion be very similar to what you request? It shows up whenever you start typing a known symbol (class, method name or whatever) and provide a list of known symbols for completion. This list appears by default after the fourth entered character of a known symbol but you can of course change the amount of characters needed to trigger the list. Additionally, you can trigger the list with the keyboard shortcut Ctrl-Space.
I have no idea, where else it could be put. Toolbar seems a natural place.
I don't think (anymore) that the toolbar is the best place for such a thing. Maybe it would be better in the sidebar, withinin the tab for the symbol list and place it ontop of the symbol list.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Thu, 19 Feb 2009 17:52:15 +0100, Filip Gruszczyński gruszczy@gmail.com wrote:
I think there is a slight confusion. I am not talking about completion, but about jumping to the right place in file. This is why basically only classes and methods/functions would be necessary. Right now I have to use hierarchy tree on the left, but I have small screen and I always hide this tree. Toolbar is small and useful for jumping. This is how this combo is used in 2005. I am not talking about completions. Completions are cool and I use them a lot, but that's completely different thing. When I have large source file, I would like to be able to jump to the part I want to change quickly and not search for it in code or in tree.
Ok, I see. Thanks for clarifying this, now it's completely clear.
I think it should be possible with not too much efforts to get such a combo list to the toolbar (or wherever) but I'm not sure about filtering.
Regards, Enrico
Ok, I see. Thanks for clarifying this, now it's completely clear.
I think it should be possible with not too much efforts to get such a combo list to the toolbar (or wherever) but I'm not sure about filtering.
Bump! :-)
So, is there any chance it will appear in Geany 0.17 ;-)
On Sun, 8 Mar 2009 23:45:34 +0100, Filip wrote:
Ok, I see. Thanks for clarifying this, now it's completely clear.
I think it should be possible with not too much efforts to get such a combo list to the toolbar (or wherever) but I'm not sure about filtering.
Bump! :-)
So, is there any chance it will appear in Geany 0.17 ;-)
Sure, once someone starts to write the code. I know this isn't exactly the answer you want to hear but it's the best I can do so far (accepting patches).
Maybe I'll change my mind regarding implementing this myself some time in the next weeks, but not for now.
Regards, Enrico
Sure, once someone starts to write the code. I know this isn't exactly the answer you want to hear but it's the best I can do so far (accepting patches).
Maybe I'll change my mind regarding implementing this myself some time in the next weeks, but not for now.
Nope, I am just asking if it was added to some of your TODO list, not that you sit down and code for tomorrow ;-) I assume it was, and that's fine for me :-)