├── icon.png
├── screenshot.png
├── rot13.alfredworkflow
├── rot13.py
├── README.md
└── info.plist
/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alexwlchan/rot13-for-alfred3/master/icon.png
--------------------------------------------------------------------------------
/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alexwlchan/rot13-for-alfred3/master/screenshot.png
--------------------------------------------------------------------------------
/rot13.alfredworkflow:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alexwlchan/rot13-for-alfred3/master/rot13.alfredworkflow
--------------------------------------------------------------------------------
/rot13.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | # -*- encoding: utf-8
3 |
4 | import json
5 | import sys
6 |
7 | query = sys.argv[1]
8 | encoded_query = query.encode("rot13")
9 |
10 | payload = {
11 | "items": [
12 | {
13 | "type": "file",
14 | "title": encoded_query,
15 | "subtitle": SUBTITLE,
16 | "arg": encoded_query
17 | }
18 | ]
19 | }
20 |
21 | print(json.dumps(payload))
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # rot13-for-alfred3
2 |
3 | A [rot13 cipher][rot13] implementation for Alfred 3.
4 | Requires the Alfred Powerpck to use.
5 | Originally made by [@fontiago][fontiago], and tweaked by alexwlchan.
6 |
7 |
8 |
9 | [rot13]: https://en.wikipedia.org/wiki/ROT13
10 | [fontiago]: https://github.com/fontiago/rot13-for-alfred3
11 |
12 |
13 | ## Installation
14 |
15 | Clone or download this repository, then open `rot13.alfredworkflow`.
16 |
17 | Alternatively, you can download it [directly from GitHub][github].
18 |
19 | [github]: https://github.com/alexwlchan/rot13-for-alfred3/raw/master/rot13.alfredworkflow
20 |
21 |
22 | ## Usage
23 |
24 | There are two keywords (both configurable in the Alfred Preferences):
25 |
26 | With **`r13`**, you can action the item (usually the Enter key) to copy the ciphered text to your clipboard.
27 |
28 | With **`r13l`**, action the item to display the ciphered text as large text.
29 |
30 |
31 | ## Development
32 |
33 | The interesting logic happens in `rot13.py`, which gets dropped into an Alfred [script filter][script_filter].
34 |
35 | Once you've edited this script, run `build_workflow.py` to build a new workflow bundle.
36 |
37 | [script_filter]: https://www.alfredapp.com/help/workflows/inputs/script-filter/
38 |
39 |
40 | ## Gunaxf sbe ernqvat
41 |
--------------------------------------------------------------------------------
/info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | bundleid
6 | com.alfredapp.rot13
7 | connections
8 |
9 | 1412902C-3BF6-41E8-8477-77633CA2D86A
10 |
11 | CE960F7D-4CB0-4084-9141-682B6F0AB10D
12 |
13 |
14 | destinationuid
15 | 1412902C-3BF6-41E8-8477-77633CA2D86A
16 | modifiers
17 | 0
18 | modifiersubtext
19 |
20 | vitoclose
21 |
22 |
23 |
24 | D5678740-2ACF-4598-9DEE-69AB8B96D58D
25 |
26 |
27 | destinationuid
28 | 5EB85E79-B554-411F-A96C-59A9256E4F6D
29 | modifiers
30 | 0
31 | modifiersubtext
32 |
33 | vitoclose
34 |
35 |
36 |
37 |
38 | createdby
39 | @fontiago
40 | description
41 | send text through the rot13 cipher with Alfred 3.
42 | disabled
43 |
44 | name
45 | rot13
46 | objects
47 |
48 |
49 | config
50 |
51 | alfredfiltersresults
52 |
53 | alfredfiltersresultsmatchmode
54 | 0
55 | argumenttrimmode
56 | 0
57 | argumenttype
58 | 0
59 | escaping
60 | 68
61 | keyword
62 | r13
63 | queuedelaycustom
64 | 3
65 | queuedelayimmediatelyinitially
66 |
67 | queuedelaymode
68 | 0
69 | queuemode
70 | 1
71 | runningsubtext
72 | Ciphering...
73 | script
74 | CLIPBOARD_SCRIPT
75 | scriptargtype
76 | 1
77 | scriptfile
78 |
79 | subtext
80 | Type text to cipher it through rot13.
81 | title
82 | rot13
83 | type
84 | 3
85 | withspace
86 |
87 |
88 | type
89 | alfred.workflow.input.scriptfilter
90 | uid
91 | CE960F7D-4CB0-4084-9141-682B6F0AB10D
92 | version
93 | 2
94 |
95 |
96 | config
97 |
98 | autopaste
99 |
100 | clipboardtext
101 | {query}
102 | transient
103 |
104 |
105 | type
106 | alfred.workflow.output.clipboard
107 | uid
108 | 1412902C-3BF6-41E8-8477-77633CA2D86A
109 | version
110 | 2
111 |
112 |
113 | config
114 |
115 | alfredfiltersresults
116 |
117 | alfredfiltersresultsmatchmode
118 | 0
119 | argumenttrimmode
120 | 0
121 | argumenttype
122 | 0
123 | escaping
124 | 68
125 | keyword
126 | rot13
127 | queuedelaycustom
128 | 3
129 | queuedelayimmediatelyinitially
130 |
131 | queuedelaymode
132 | 0
133 | queuemode
134 | 1
135 | runningsubtext
136 | Ciphering...
137 | script
138 | LARGE_TYPE_SCRIPT
139 | scriptargtype
140 | 1
141 | scriptfile
142 |
143 | subtext
144 | Type text to cipher it through rot13 and action to display in big text.
145 | title
146 | rot13
147 | type
148 | 3
149 | withspace
150 |
151 |
152 | type
153 | alfred.workflow.input.scriptfilter
154 | uid
155 | D5678740-2ACF-4598-9DEE-69AB8B96D58D
156 | version
157 | 2
158 |
159 |
160 | config
161 |
162 | largetypetext
163 | {query}
164 |
165 | type
166 | alfred.workflow.output.largetype
167 | uid
168 | 5EB85E79-B554-411F-A96C-59A9256E4F6D
169 | version
170 | 2
171 |
172 |
173 | readme
174 |
175 | uidata
176 |
177 | 1412902C-3BF6-41E8-8477-77633CA2D86A
178 |
179 | xpos
180 | 280
181 | ypos
182 | 120
183 |
184 | 5EB85E79-B554-411F-A96C-59A9256E4F6D
185 |
186 | xpos
187 | 280
188 | ypos
189 | 250
190 |
191 | CE960F7D-4CB0-4084-9141-682B6F0AB10D
192 |
193 | xpos
194 | 110
195 | ypos
196 | 120
197 |
198 | D5678740-2ACF-4598-9DEE-69AB8B96D58D
199 |
200 | xpos
201 | 110
202 | ypos
203 | 250
204 |
205 |
206 | webaddress
207 |
208 |
209 |
210 |
--------------------------------------------------------------------------------