mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//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>#!/bin/bash
|
|
|
|
THASKELL=${TM_HASKELL:-ghci}
|
|
|
|
esc () {
|
|
STR="$1" ruby18 <<"RUBY"
|
|
str = ENV['STR']
|
|
str = str.gsub(/'/, "'\\\\''")
|
|
str = str.gsub(/[\\"]/, '\\\\\\0')
|
|
print "'#{str}'"
|
|
RUBY
|
|
}
|
|
|
|
osascript <<- APPLESCRIPT
|
|
tell app "Terminal"
|
|
launch
|
|
activate
|
|
do script "clear; cd $(esc "${TM_DIRECTORY}"); ${THASKELL} $(esc "${TM_FILEPATH}")"
|
|
set position of first window to {100, 100}
|
|
end tell
|
|
APPLESCRIPT
|
|
</string>
|
|
<key>input</key>
|
|
<string>none</string>
|
|
<key>inputFormat</key>
|
|
<string>text</string>
|
|
<key>keyEquivalent</key>
|
|
<string>@R</string>
|
|
<key>name</key>
|
|
<string>Load in GHCi</string>
|
|
<key>outputCaret</key>
|
|
<string>afterOutput</string>
|
|
<key>outputFormat</key>
|
|
<string>text</string>
|
|
<key>outputLocation</key>
|
|
<string>toolTip</string>
|
|
<key>scope</key>
|
|
<string>source.haskell</string>
|
|
<key>semanticClass</key>
|
|
<string>process.external.run.haskell</string>
|
|
<key>uuid</key>
|
|
<string>2242C46C-153E-4EEB-B80B-A5398559D759</string>
|
|
<key>version</key>
|
|
<integer>2</integer>
|
|
</dict>
|
|
</plist>
|