Skip to content

Instantly share code, notes, and snippets.

@njs50
Created October 26, 2018 06:14
Show Gist options
  • Save njs50/cf36d04c8818529cac3dccd26aa15553 to your computer and use it in GitHub Desktop.
Save njs50/cf36d04c8818529cac3dccd26aa15553 to your computer and use it in GitHub Desktop.
repeats junk that got jammed onto the end of the prompt so other triggers can parse properly
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.001">
<TriggerPackage>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>repeat stuff jammed in prompt</name>
<script>if (matches[3]) then
local prompt = matches[2]
local stuff = matches[3]
echo('\n^^ PROMPT FAIL: [' .. stuff .. ']\n')
feedTriggers(prompt .. '\n')
feedTriggers(stuff .. '\n')
end</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>^(&lt;[^&gt;]*&gt;)\s*(.+)$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
</TriggerPackage>
</MudletPackage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment