43 lines
814 B
INI
43 lines
814 B
INI
action: ShellCommand
|
|
label: _Shell Command
|
|
cmd = HistoryEntry("", "ShellCommand");
|
|
if cmd then
|
|
Insert(Exec(cmd), "\n");
|
|
fi;
|
|
|
|
action: SwitchHeaderAndImpl
|
|
label: _Switch Header And Implementation
|
|
options: need-file
|
|
lang: C
|
|
h_ext = ['.h'];
|
|
c_ext = ['.c'];
|
|
new = none;
|
|
if doc.ext in h_ext then
|
|
new = c_ext;
|
|
elif doc.ext in c_ext then
|
|
new = h_ext;
|
|
else
|
|
return;
|
|
fi;
|
|
for e in new do
|
|
file = doc.dir + '/' + doc.base + e;
|
|
if FileExists(file) then
|
|
Open(file);
|
|
return;
|
|
fi;
|
|
od;
|
|
|
|
action: Latex
|
|
label: LaTeX
|
|
lang: LaTeX
|
|
command: shell
|
|
options: need-save
|
|
cd $dir && latex $name
|
|
|
|
action: ViewDVI
|
|
label: View DVI
|
|
lang: LaTeX
|
|
command: shell
|
|
options: need-file, silent
|
|
cd $dir && kdvi $base.dvi &
|