Closed GoogleCodeExporter closed 8 years ago
Sry i dont want to set the issue type to "defect". It is just a request.
Original comment by fhamme...@gmail.com
on 27 Apr 2008 at 6:43
Thanks for entering this feature request. Yes I plan to include such a feature.
I
think the way it will work is that "sub"-files of another project could specify
the
command to run in a special comment. For some projects that would be 'run
LilyPond
on that other file', or just 'make' if you use Makefile (which I do very often).
Original comment by wbsoft
on 28 Apr 2008 at 8:57
My proposal is that the specially formatted comment looks as follows:
%{lilykde
lyfile = <other lilypond file to build instead of current>
preview = <command to run instead of 'lilypond doc.ly', e.g. 'make'>
publish = <command to run instead of 'lilypond -dno-point-and-click doc.ly'>
...
%}
Other variables could be envisioned, e.g. to change the output file name or
other
parameters.
Please add any useful opinions on this :)
Original comment by wbsoft
on 28 Apr 2008 at 9:42
Implemented in revision 341.
It is now possible to place specially formatted variables
inside LilyPond comments, that are read by LilyKDE. The
variable names should consist of lowercase letters, and may
contain (but not end or start with) single hyphens.
E.g.:
%%varname: value
The following variables are currently understood:
%%master: document.ly
Runs lilypond on document.ly instead of current document.
%%master-publish: document.ly
Runs lilypond on document.ly instead of current document,
but only in publish mode.
%%master-preview: document.ly
Runs lilypond on document.ly instead of current document,
but only in preview mode.
(This function does only work within kate, not in the
Konqueror service menu helper app.)
Original comment by wbsoft
on 28 Apr 2008 at 9:57
Thx for implementation. I will try it these days.
Original comment by fhamme...@gmail.com
on 2 May 2008 at 7:16
It works great. Thx again.
Original comment by fhamme...@gmail.com
on 4 May 2008 at 8:43
Original issue reported on code.google.com by
fhamme...@gmail.com
on 27 Apr 2008 at 6:42