Skip to content

Commit

Permalink
Merge pull request #4 from alexchantastic/python
Browse files Browse the repository at this point in the history
Migrate to python script
  • Loading branch information
alexchantastic authored Nov 3, 2021
2 parents e71da50 + 815cf2a commit 4c66758
Show file tree
Hide file tree
Showing 10 changed files with 532 additions and 467 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store
*.pyc
__pycache__
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Screenshot](https://user-images.githubusercontent.com/604167/42200962-8c4c8a76-7e4a-11e8-9642-cffbef06798f.png)

An [Alfred 4](https://www.alfredapp.com/) workflow for generating [lorem ipsum](https://en.wikipedia.org/wiki/Lorem_ipsum) dummy text using [joshtronic/php-loremipsum](https://github.com/joshtronic/php-loremipsum).
An [Alfred 4](https://www.alfredapp.com/) workflow for generating [lorem ipsum](https://en.wikipedia.org/wiki/Lorem_ipsum) dummy text using [JarryShaw/lorem](https://github.com/JarryShaw/lorem).

## Installation

Expand Down
60 changes: 32 additions & 28 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<key>escaping</key>
<integer>127</integer>
<key>script</key>
<string>php -f script.php "characters" "{query}"</string>
<string>python3 lipsum.py characters {query}</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand All @@ -153,6 +153,8 @@
<true/>
<key>clipboardtext</key>
<string>{query}</string>
<key>ignoredynamicplaceholders</key>
<false/>
<key>transient</key>
<false/>
</dict>
Expand All @@ -161,7 +163,7 @@
<key>uid</key>
<string>125F91DD-9720-45BD-9F14-08966CFC2643</string>
<key>version</key>
<integer>2</integer>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
Expand Down Expand Up @@ -213,7 +215,7 @@
<key>escaping</key>
<integer>127</integer>
<key>script</key>
<string>php -f script.php "words" "{query}"</string>
<string>python3 lipsum.py words {query}</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand All @@ -228,6 +230,27 @@
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>1</integer>
<key>keyword</key>
<string>lipsum</string>
<key>subtext</key>
<string>Generate {query} sentences</string>
<key>text</key>
<string>Sentences</string>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.keyword</string>
<key>uid</key>
<string>1029C7B6-DB95-4448-B3C5-C33F3DA0F894</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand All @@ -236,7 +259,7 @@
<key>escaping</key>
<integer>127</integer>
<key>script</key>
<string>php -f script.php "sentences" "{query}"</string>
<string>python3 lipsum.py sentences {query}</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand All @@ -251,27 +274,6 @@
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>1</integer>
<key>keyword</key>
<string>lipsum</string>
<key>subtext</key>
<string>Generate {query} sentences</string>
<key>text</key>
<string>Sentences</string>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.keyword</string>
<key>uid</key>
<string>1029C7B6-DB95-4448-B3C5-C33F3DA0F894</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -301,7 +303,7 @@
<key>escaping</key>
<integer>127</integer>
<key>script</key>
<string>php -f script.php "paragraphs" "{query}"</string>
<string>python3 lipsum.py paragraphs {query}</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand All @@ -318,7 +320,7 @@
</dict>
</array>
<key>readme</key>
<string>An Alfred 3 workflow for generating lorem ipsum dummy text using joshtronic/php-loremipsum.</string>
<string>An Alfred 4 workflow for generating lorem ipsum dummy text.</string>
<key>uidata</key>
<dict>
<key>1029C7B6-DB95-4448-B3C5-C33F3DA0F894</key>
Expand Down Expand Up @@ -385,8 +387,10 @@
<integer>10</integer>
</dict>
</dict>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>2.2.0</string>
<string>3.0.0</string>
<key>webaddress</key>
<string>https://github.com/alexchantastic/alfred-lipsum-workflow</string>
</dict>
Expand Down
Loading

0 comments on commit 4c66758

Please sign in to comment.