-
Notifications
You must be signed in to change notification settings - Fork 0
/
info.plist
172 lines (168 loc) · 4.5 KB
/
info.plist
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?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>bundleid</key>
<string>com.veraxus.aurawindsurfing.phpstorm</string>
<key>connections</key>
<dict>
<key>CC0D7C57-8BD9-48D8-A467-6123569E8F62</key>
<array>
<dict>
<key>destinationuid</key>
<string>F40B73A3-87C9-4B3A-824F-F080E8D706C9</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
</dict>
<key>createdby</key>
<string>Dutch van Andel forked by aurawindsurfing</string>
<key>description</key>
<string>Open any project in PhpStorm</string>
<key>disabled</key>
<false/>
<key>name</key>
<string>Open PhpStorm Project Directly from Alfred</string>
<key>objects</key>
<array>
<dict>
<key>config</key>
<dict>
<key>alfredfiltersresults</key>
<false/>
<key>alfredfiltersresultsmatchmode</key>
<integer>0</integer>
<key>argumenttreatemptyqueryasnil</key>
<true/>
<key>argumenttrimmode</key>
<integer>0</integer>
<key>argumenttype</key>
<integer>1</integer>
<key>escaping</key>
<integer>102</integer>
<key>keyword</key>
<string>php</string>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
<true/>
<key>queuedelaymode</key>
<integer>0</integer>
<key>queuemode</key>
<integer>1</integer>
<key>runningsubtext</key>
<string>Searching...</string>
<key>script</key>
<string>query=$1
# Tilde needs to be explciitly expanded
projPath=${projPath/\~/$HOME}
output=$(find "${projPath}" -type d -mindepth 1 -maxdepth 1 -iname "*${query}*")
echo '<?xml version="1.0" encoding="utf-8"?>'
echo "<items>"
echo "${output}" | while IFS= read -r line
do
escapedline="$(echo ${line} | sed 's/ /\\\ /g' )"
base="$(basename "${escapedline}" )"
echo '<item valid="yes">'
echo "<title>${base}</title>"
echo "<subtitle><![CDATA[${line}]]></subtitle>"
echo "<arg><![CDATA[${line}]]></arg>"
echo '</item>'
done
if [[ -z "${output}" ]]
then
echo '<item valid="yes">'
echo "<title>😢 Nothing Found!</title>"
echo "<subtitle>Try a different search term.</subtitle>"
echo "<arg><![CDATA[${query}]]></arg>"
echo '</item>'
fi
echo "</items>"</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string></string>
<key>subtext</key>
<string>The directory for your IDE project...</string>
<key>title</key>
<string>your-project-directory</string>
<key>type</key>
<integer>0</integer>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>CC0D7C57-8BD9-48D8-A467-6123569E8F62</string>
<key>version</key>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>103</integer>
<key>script</key>
<string>query=$1
open -a $ideAppName -n --args "$query"</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>0</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>F40B73A3-87C9-4B3A-824F-F080E8D706C9</string>
<key>version</key>
<integer>2</integer>
</dict>
</array>
<key>readme</key>
<string>Opens the given PHPStorm project. You can amend project path in "projPath"</string>
<key>uidata</key>
<dict>
<key>CC0D7C57-8BD9-48D8-A467-6123569E8F62</key>
<dict>
<key>note</key>
<string>Get projects inside the configured project directory.</string>
<key>xpos</key>
<integer>145</integer>
<key>ypos</key>
<integer>105</integer>
</dict>
<key>F40B73A3-87C9-4B3A-824F-F080E8D706C9</key>
<dict>
<key>note</key>
<string>Open the selected directory in PhpStorm</string>
<key>xpos</key>
<integer>335</integer>
<key>ypos</key>
<integer>105</integer>
</dict>
</dict>
<key>variables</key>
<dict>
<key>ideAppName</key>
<string>PhpStorm</string>
<key>projPath</key>
<string>~/Sites</string>
</dict>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>2.0.1</string>
<key>webaddress</key>
<string></string>
</dict>
</plist>