medit/moo/mooedit/tools.xml

15 lines
312 B
XML

<tools>
<tool id="ShellCommand" os="unix">
<_name>Shell Command</_name>
<_label>_Shell Command</_label>
<command type="MooScript">
<flags>need-doc</flags>
<code>cmd = HistoryEntry("", "ShellCommand");
if cmd then
Insert(Exec(cmd), "\n");
fi;
</code>
</command>
</tool>
</tools>