forked from bradmontgomery/alfred-percent-change
-
Notifications
You must be signed in to change notification settings - Fork 0
/
info.plist
117 lines (104 loc) · 3.19 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
<?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>net.bradmontgomery.percent_change</string>
<key>category</key>
<string>Tools</string>
<key>connections</key>
<dict/>
<key>createdby</key>
<string>Brad Montgomery</string>
<key>description</key>
<string>Easily do percentage calculations.</string>
<key>disabled</key>
<false/>
<key>name</key>
<string>Percent Change</string>
<key>objects</key>
<array>
<dict>
<key>config</key>
<dict>
<key>alfredfiltersresults</key>
<false/>
<key>alfredfiltersresultsmatchmode</key>
<integer>0</integer>
<key>argumenttrimmode</key>
<integer>0</integer>
<key>argumenttype</key>
<integer>0</integer>
<key>escaping</key>
<integer>102</integer>
<key>keyword</key>
<string>%</string>
<key>queuedelaycustom</key>
<integer>1</integer>
<key>queuedelayimmediatelyinitially</key>
<false/>
<key>queuedelaymode</key>
<integer>0</integer>
<key>queuemode</key>
<integer>1</integer>
<key>runningsubtext</key>
<string>calculating</string>
<key>script</key>
<string>python percent.py "{query}"</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
<string></string>
<key>subtext</key>
<string>Use "% help" to see examples.</string>
<key>title</key>
<string>Percent Calculations</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>ABB6BA81-8665-40FE-A867-448DF94386CA</string>
<key>version</key>
<integer>2</integer>
</dict>
</array>
<key>readme</key>
<string>Percent Change
--------------
This is an Alfred Workflow to help you do percentage calculations. You can see
some background info on the original [forum post](http://www.alfredforum.com/topic/4731-percent-change/).
Based on https://github.com/bradmontgomery/alfred-percent-change
Calculations #6 and #7 added by me.
The supported calculations include:
1. *Percent Change* (increase/decrease): `% 3 6` -> 100%
2. *Percentage Of*: 3 is what percent of 100: `% 3 of 100` -> 3%
3. *Percent Of*: 5 percent of 100 is 5: `% 5 percent of 100` -> 5, or `% 5% of 100` -> 5
4. *Percent Decrease*: What is 2 percent from 100: `% 100 - 2%`
5. *Percent Increase*: What is 100 + 2%: `% 100 + 2%`
6. *Original number before Percent Decrease*: What number is 100 2 percent less than?:`% 100 is 2% lt`
7. *Original number before Percent Increase*: What number is 100 2 percent more than?:`% 100 is 2% gt`
-------
Build:
- workflow-build.py https://gist.github.com/AdamWagner/38228953422e830c4484e62ff116466a
- `python workflow-build.py -d . -o .`
License
-------
This Workflow is available under the terms of the MIT License.</string>
<key>uidata</key>
<dict>
<key>ABB6BA81-8665-40FE-A867-448DF94386CA</key>
<dict>
<key>xpos</key>
<integer>300</integer>
<key>ypos</key>
<real>80</real>
</dict>
</dict>
<key>webaddress</key>
<string>http://bradmontgomery.net</string>
</dict>
</plist>