medit/moo/mooedit/menu.cfg

172 lines
2.9 KiB
INI
Raw Normal View History

# -%- strip: false; indent-width: 2 -%-
2007-09-02 15:40:07 -05:00
#[tool]
#id = ShellCommand
#name = _Shell Command
#os = unix
#type = moo-script
#options = need-doc
# cmd = HistoryEntry("", "ShellCommand");
# if cmd then
# Insert(Exec(cmd), "\n");
# fi;
[tool]
id = SortLines
2006-11-30 15:49:24 -06:00
name = Sort Lines
type = exe
2007-09-02 15:40:07 -05:00
os = unix
options = need-doc
input = lines
output = insert
2006-11-30 15:49:24 -06:00
sort
[tool]
id=Yacc
langs=yacc
type=exe
2007-09-02 15:40:07 -05:00
os=unix
2006-11-30 15:49:24 -06:00
name=Bison
filter=bison
options=need-save
output=pane
bison $DOC
[tool]
id=LaTeX
file-filter=*.tex
2006-11-30 15:49:24 -06:00
type=exe
2007-09-02 15:40:07 -05:00
os=unix
2006-11-30 15:49:24 -06:00
name=LaTeX
filter=latex
options=need-save
output=pane
accel=<shift><ctrl>L
[ -f medit-env.sh ] && . medit-env.sh
doc="${LATEX_MASTER:-$DOC}"
latex --src-specials "$doc"
2006-11-30 15:49:24 -06:00
[tool]
id=Make_PDF
file-filter=*.tex
2006-11-30 15:49:24 -06:00
type=exe
2007-09-02 15:40:07 -05:00
os=unix
2006-11-30 15:49:24 -06:00
name=Make PDF
filter=latex
options=need-save
output=pane
[ -f medit-env.sh ] && . medit-env.sh
doc="${LATEX_MASTER:-$DOC}"
doc_base=`basename "$doc" .tex`
latex --src-specials "$doc" && \
dvips "$doc_base.dvi" && \
ps2pdf "$doc_base.ps"
2006-11-30 15:49:24 -06:00
[tool]
id=Bibtex
file-filter=*.tex
2006-11-30 15:49:24 -06:00
type=exe
2007-09-02 15:40:07 -05:00
os=unix
2006-11-30 15:49:24 -06:00
name=Bibtex
options=need-doc
output=pane
accel=<shift><ctrl>B
[ -f medit-env.sh ] && . medit-env.sh
doc="${LATEX_MASTER:-$DOC}"
doc_base=`basename "$doc" .tex`
bibtex "$doc_base"
2006-11-30 15:49:24 -06:00
[tool]
id=PdfLaTeX
file-filter=*.tex
2006-11-30 15:49:24 -06:00
type=exe
2007-09-02 15:40:07 -05:00
os=unix
2006-11-30 15:49:24 -06:00
name=PdfLaTeX
filter=latex
options=need-save
output=pane
[ -f medit-env.sh ] && . medit-env.sh
doc="${LATEX_MASTER:-$DOC}"
pdflatex "$doc"
2006-11-30 15:49:24 -06:00
[tool]
id=View_DVI
file-filter=*.tex
2006-11-30 15:49:24 -06:00
type=exe
2007-09-02 15:40:07 -05:00
os=unix
2006-11-30 15:49:24 -06:00
name=View DVI
options=need-doc
output=async
accel=<shift><ctrl>V
[ -f medit-env.sh ] && . medit-env.sh
doc="${LATEX_MASTER:-$DOC}"
doc_base=`basename "$doc" .tex`
if (which kdvi > /dev/null); then
kdvi --unique "$doc_base.dvi" && \
dcop `dcopfind -a 'kviewshell-*'` kdvi-mainwindow#1 hide && \
dcop `dcopfind -a 'kviewshell-*'` kdvi-mainwindow#1 show
else
xdg-open "$doc_base.dvi"
fi
2006-11-30 15:49:24 -06:00
[tool]
id=View_PDF
file-filter=*.tex
2006-11-30 15:49:24 -06:00
type=exe
2007-09-02 15:40:07 -05:00
os=unix
2006-11-30 15:49:24 -06:00
name=View PDF
options=need-doc
output=async
[ -f medit-env.sh ] && . medit-env.sh
doc="${LATEX_MASTER:-$DOC}"
doc_base=`basename "$doc" .tex`
if (which kpdf > /dev/null); then
2006-11-30 15:49:24 -06:00
kpdf=`dcopfind -a 'kpdf-*'`
if [ -z "$kpdf" ]; then
kpdf "$doc_base.pdf"
kpdf=`dcopfind -a 'kpdf-*'`
else
dcop "$kpdf" kpdf openDocument "$doc_base.pdf"
fi
dcop "$kpdf" kpdf-mainwindow#1 hide
dcop "$kpdf" kpdf-mainwindow#1 show
2006-11-30 15:49:24 -06:00
else
xdg-open "$doc_base.pdf"
2006-11-30 15:49:24 -06:00
fi
2006-11-30 15:49:24 -06:00
[tool]
id=Math
file-filter=*.tex
type=lua
name=Math
options=need-doc
accel=<alt>M
2007-09-05 11:17:35 -05:00
selection = Selection()
if selection then
2007-09-05 11:17:35 -05:00
Insert("$", selection, "$")
else
2007-09-05 11:17:35 -05:00
Insert("$ $")
Left()
Select(-1)
end
2007-11-26 02:45:23 -06:00
[tool]
id=InsertDateAndTime
type=python
name=Insert Date and Time
options=need-doc
# insert_date_and_time.py is installed in
# $prefix/lib/moo/plugins/lib
from insert_date_and_time import get_format
import time
fmt = get_format(window)
if fmt is not None:
buffer.insert_at_cursor(time.strftime(fmt))