More tools
parent
dbd71a73b1
commit
ab742534ca
|
@ -1,7 +1,8 @@
|
|||
# -%- strip: false -%-
|
||||
[tool]
|
||||
id = SwitchHeaderAndImplementation
|
||||
name = Switch Header and Implementation
|
||||
langs = C, GAP
|
||||
langs = c, cpp, gap
|
||||
type = moo-script
|
||||
options = need-file
|
||||
extensions = [[['.h', '.hh', '.hpp', '.hxx', '.H'], ['.c', '.cc', '.cpp', '.cxx', '.C']],
|
||||
|
@ -29,3 +30,14 @@ options = need-file
|
|||
return;
|
||||
fi;
|
||||
od;
|
||||
|
||||
[tool]
|
||||
id=DVI_Forward_Search
|
||||
langs=latex
|
||||
type=exe
|
||||
name=DVI Forward Search
|
||||
options=need-file
|
||||
output=async
|
||||
kdvi --unique file:$DOC_BASE.dvi#src:$LINE$DOC &&
|
||||
dcop `dcopfind -a 'kviewshell-*'` kdvi-mainwindow#1 hide &&
|
||||
dcop `dcopfind -a 'kviewshell-*'` kdvi-mainwindow#1 show
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -%- strip: false -%-
|
||||
[tool]
|
||||
id = ShellCommand
|
||||
name = _Shell Command
|
||||
|
@ -11,9 +12,107 @@ options = need-doc
|
|||
|
||||
[tool]
|
||||
id = SortLines
|
||||
name = Sort
|
||||
name = Sort Lines
|
||||
type = exe
|
||||
options = need-doc
|
||||
input = lines
|
||||
output = insert
|
||||
sort
|
||||
|
||||
[tool]
|
||||
id=Yacc
|
||||
langs=yacc
|
||||
type=exe
|
||||
name=Bison
|
||||
filter=bison
|
||||
options=need-save
|
||||
output=pane
|
||||
bison $DOC
|
||||
|
||||
[tool]
|
||||
id=LaTeX
|
||||
langs=latex
|
||||
type=exe
|
||||
name=LaTeX
|
||||
filter=latex
|
||||
options=need-save
|
||||
output=pane
|
||||
accel=<shift><ctrl>L
|
||||
latex --src-specials $DOC
|
||||
|
||||
[tool]
|
||||
id=Make_PDF
|
||||
langs=latex
|
||||
type=exe
|
||||
name=Make PDF
|
||||
filter=latex
|
||||
options=need-save
|
||||
output=pane
|
||||
latex --src-specials $DOC &&
|
||||
dvips $DOC_BASE.dvi &&
|
||||
ps2pdf $DOC_BASE.ps
|
||||
|
||||
[tool]
|
||||
id=Bibtex
|
||||
langs=latex
|
||||
type=exe
|
||||
name=Bibtex
|
||||
options=need-doc
|
||||
output=pane
|
||||
accel=<shift><ctrl>B
|
||||
bibtex $DOC_BASE
|
||||
|
||||
[tool]
|
||||
id=PdfLaTeX
|
||||
langs=latex
|
||||
type=exe
|
||||
name=PdfLaTeX
|
||||
filter=latex
|
||||
options=need-save
|
||||
output=pane
|
||||
pdflatex $DOC
|
||||
|
||||
[tool]
|
||||
id=View_DVI
|
||||
langs=latex
|
||||
type=exe
|
||||
name=View DVI
|
||||
options=need-doc
|
||||
output=async
|
||||
accel=<shift><ctrl>V
|
||||
kdvi --unique $DOC_BASE.dvi &&
|
||||
dcop `dcopfind -a 'kviewshell-*'` kdvi-mainwindow#1 hide &&
|
||||
dcop `dcopfind -a 'kviewshell-*'` kdvi-mainwindow#1 show
|
||||
|
||||
[tool]
|
||||
id=View_PDF
|
||||
langs=latex
|
||||
type=exe
|
||||
name=View PDF
|
||||
options=need-doc
|
||||
output=async
|
||||
kpdf=`dcopfind -a 'kpdf-*'`
|
||||
if [ -z "$kpdf"]; then
|
||||
kpdf $DOC_BASE.pdf
|
||||
kpdf=`dcopfind -a 'kpdf-*'`
|
||||
else
|
||||
dcop "$kpdf" kpdf openDocument "$DOC_DIR/$DOC_BASE.pdf"
|
||||
fi
|
||||
dcop "$kpdf" kpdf-mainwindow#1 hide
|
||||
dcop "$kpdf" kpdf-mainwindow#1 show
|
||||
|
||||
[tool]
|
||||
id=Math
|
||||
langs=latex
|
||||
type=moo-script
|
||||
name=Math
|
||||
options=need-doc
|
||||
accel=<alt>M
|
||||
selection = Selection();
|
||||
if selection then
|
||||
Insert('$' + selection + '$');
|
||||
else
|
||||
Insert('$ $');
|
||||
Left();
|
||||
Select(-1);
|
||||
fi;
|
||||
|
|
Loading…
Reference in New Issue