On Wed, 28 Nov 2007 10:21:27 +0100, Harold Aling h.aling@home.nl wrote:
Hi,
- The scope is only functional when the file is freshly saved (else
it's 'unknown')
Yes, this is a very strange bug, didn't find the cause yet.
It would be cool if Geany would automatically refresh the scope info (and symbol list) every X seconds or upon change.
Well, the symbol list is updated everytime when the file is saved. To update it more often, e.g. regularly just save the file more often. The symbol list can only be updated when the file is saved(i.e. actually written to disk) because the tagmanager only works on files not on buffers. On the TODO there is already an item to get the tagmanager also working on text buffers not only on files. As a workaround, use the autosave plugin.
- The scope is not based on the beginning of the function
declaration, but after the declaration's {. Inserting a function description when you cursor is at %cursor%
function other_function() { // do stuff }
function my_function %cursor% { // do stuff }
...will add a description to 'other_function()'.
Yes, the cursor must be within the { }. This is also documented and I won't change it because it would be a lot of work for a very less change. Just click within the { } before inserting a function comment.
- The function description is added with '<?php' and '?>' tags, which
corrupts the php file.
Fixed in SVN, sorry.
- It would also be cool if the command would also detect the input
variables and add them to the description
Yes it would be cool but it has to be implemented...not a high priority for me.
Regards, Enrico