[Geany] How to add symbols to the Symbol tab

Nick Treleaven nick.treleaven at xxxxx
Tue Apr 10 16:23:53 UTC 2012


On 10/04/2012 09:57, Lex Trotman wrote:
> On 10 April 2012 18:14, Robert Fekete<fekete77.robert at gmail.com>  wrote:
>> - Is it possible to list the symbols by appearance by default?
>> Currently I have to manually change this setting for every file.
>
> Well, for most programming, having the symbols in alphabetical order
> is the right thing to do, so thats the default.  As you noted it is a
> per-file setting and there is no way to store it per file.  Making the
> default per filetype might be your solution, but that would take some
> work and well, somebodys got to do it.  But patches are welcome.

Already implemented per-filetype - see symbol_list_sort_mode under:
http://www.geany.org/manual/current/index.html#settings-section

It's the default for e.g. reStructuredText and could be for DocBook if 
that seems sensible.

>> - The symbol tab now shows the sections and chapters in a separate
>> list, and that way the hierarchy of the tags (the structure of the
>> file) is lost. It is possible to display the list in a tree?
>
> The current tagmanager code is not very good at hierarchy handling
> (although it does it, it isn't good) and there is work under way to
> replace it.  Until then I would say the answer is theoretically yes

Is there? By who? Surely it would still need to parse tags with the 
CTags parsers even if it's managed differently than TagManager.

Also not sure what you mean by tagmanager not being good at hierarchies.

Regards,
Nick



More information about the Users mailing list