[Geany] Improve project support
Nick Treleaven
nick.treleaven at xxxxx
Thu May 24 11:57:06 UTC 2007
On 05/24/2007 01:01:18 AM, Michal Kurgan wrote:
> On Mon, 21 May 2007 18:18:56 +0100
> Nick Treleaven <nick.treleaven at btinternet.com> wrote:
>
> > On 05/21/2007 06:03:26 PM, Michal Kurgan wrote:
> > > On Mon, 21 May 2007 17:01:51 +0100
> > > Nick Treleaven <nick.treleaven at btinternet.com> wrote:
> > >
> > > > On 05/20/2007 03:40:05 AM, Michal Kurgan wrote:
> > > > > Hello!
> > > > >
> > > > > Another useful idea for me.
> > > > >
> > > > > Currently in geany Compile, Build and Execute commands are
> associated
> > > > > with file types and have two nice, additional variables (%f
> and %e).
> > > > > It would be very useful to add one more variable that would
> stand as
> > > > > project base directory (i.e. %p).
> > > >
> > > > Could you give an example usage of %p?
> > > >
> > >
> > > [ ... ]
> > >
> > > make -C %p/.cmake <target>
> >
> > Thanks, I'll add %p also.
> >
>
> Great information for me.
> I would be very happy if you could send some information about
> progress on
> this feature here. Everyday CHANGELOG reading is not that exiting. ;-)
Well, I'm not sure yet what is necessary.
I was too quick to reply in my last email.
I am unsure about your example for the run command. If you're running
make, you should use the normal Make command, with the project base
path set to "/path/to/project/.cmake". The only reason why you might
not want that is because then the project run command will be run with
that path as the current working directory, but probably this doesn't
matter too much. (You can use full paths or ../ in the run command as a
workaround). The run command is intended for running the script or
executable you just built.
Anyway, even if you do want to use the run command for now, I don't
think there is any need for %p. The base path is used for the current
working directory, so you can just use:
make -C .cmake <target>
Sorry I didn't reply with this earlier.
I will add run command %e and %f support, but really it needs some code
refactoring, so maybe it will get done in the next week. So just use
full paths for now.
Regards,
Nick
More information about the Users
mailing list