Hi Thomas,
Thanks for looking at it and working on improvements already.
(below copied from your previous email so I can reply to both at once)
> Great work! That's a thing I'm really missing for Geany.
> I'm digging in a bit. The dialog looks good already, but I think it lacks a important field:
> Working directory for the command.
To run a command in a specific directory just make the command field "cd <the directory>; <the rest of the command>"
That seems to be what your code is trying to do through a field for the directory, if I have misunderstood please explain.
If that is the case then I don't feel there is a need for another field in the dialog or any express support in the code, anyway for now my concern is getting the basic functionality working reliably and getting it used.
> It should be obvious, that for many projects, the source files are
structured,
> so that having the working dir default to the dir where the
source file is located doesn't work.
> And the base directory of a
project also doesn't always work.
True, this is just replicating the current way Geany performs so that it can load old config files.
> I'm looking at the code in the hope I can add it. It's a bit hard for
me to read the code,
> it lacks comments and structure here and there,
but I hope I'll find my way.
Yeah, thats the way of code thats evolved from an experiment through several iterations (15 according to my local version control) I intend to improve things when its all working.
_
Thomas Martitz schrieb:Alright, I've got to the point where I can add it.
I'm looking at the code in the hope I can add it. It's a bit hard for me to read the code, it lacks comments and structure here and there, but I hope I'll find my way.
BUT I needed to rewrite much parts (such as doing separate (even if it's the same) handling of GeanyBuildCommand.label and .command in a loop instead). The code duplication and hardcodedness was so irritating that I couldn't get it to work without.
I attached the patch. In case it's accepted, I can continue to work in really integrating the working dir field (I didn't add it yet). Adding the working dir entry field is mostly adding a item to the enum GeanyBuildCmdEntries now.
Best regards.
_______________________________________________
Geany-devel mailing list
Geany-devel@uvena.de
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel