-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathReformat Document.tmCommand
More file actions
51 lines (47 loc) · 1.27 KB
/
Reformat Document.tmCommand
File metadata and controls
51 lines (47 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?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>saveModifiedFiles</string>
<key>command</key>
<string>#!/usr/bin/env ruby18
# -- Imports -------------------------------------------------------------------
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/yapf'
# -- Main ----------------------------------------------------------------------
YAPF.reformat
</string>
<key>input</key>
<string>document</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>^H</string>
<key>name</key>
<string>Reformat Document</string>
<key>outputCaret</key>
<string>heuristic</string>
<key>outputFormat</key>
<string>text</string>
<key>outputLocation</key>
<string>discard</string>
<key>requiredCommands</key>
<array>
<dict>
<key>command</key>
<string>yapf</string>
<key>locations</key>
<array>
<string>$HOME/.pyenv/shims/yapf</string>
<string>/usr/local/bin/yapf</string>
</array>
</dict>
</array>
<key>scope</key>
<string>source.python</string>
<key>uuid</key>
<string>CA6F6269-AD9D-46DB-A9A1-7A9987C4E6EA</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>