Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (31 sloc) 0.952 kb
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env ruby
$: &lt;&lt; ENV['TM_SUPPORT_PATH'] + '/lib'
require "ui"
TextMate::UI.request_string(:title =&gt; "Wrap Size",
:prompt =&gt; "Enter a character width:",
:button1 =&gt; "Build Snippet") do |col|
col = col.to_i
print %Q{gsub!(/(.{1,#{col}}|\\S{#{col + 1},})(?: +|$\\n?)/, "\\\\1\\n")}
end
</string>
<key>input</key>
<string>none</string>
<key>name</key>
<string>word_wrap()</string>
<key>output</key>
<string>afterSelectedText</string>
<key>scope</key>
<string>source.ruby</string>
<key>tabTrigger</key>
<string>worw</string>
<key>uuid</key>
<string>97054C4D-E4A3-45B1-9C00-B82DBCB30CAD</string>
</dict>
</plist>
Jump to Line
Something went wrong with that request. Please try again.