Skip to content

Commit

Permalink
Default count option to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
alexchantastic committed Mar 21, 2022
1 parent 6580f58 commit b7372f6
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,13 @@
<key>escaping</key>
<integer>127</integer>
<key>script</key>
<string>./lipsum.sh -t characters -c {query}</string>
<string>count={query}
if [[ $count = "" ]]; then
count=1
fi
sh lipsum.sh -t characters -c $count</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -215,7 +221,13 @@
<key>escaping</key>
<integer>127</integer>
<key>script</key>
<string>./lipsum.sh -t words -c {query}</string>
<string>count={query}
if [[ $count = "" ]]; then
count=1
fi
sh lipsum.sh -t words -c $count</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -259,7 +271,13 @@
<key>escaping</key>
<integer>127</integer>
<key>script</key>
<string>./lipsum.sh -t sentences -c {query}</string>
<string>count={query}
if [[ $count = "" ]]; then
count=1
fi
sh lipsum.sh -t sentences -c $count</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -303,7 +321,13 @@
<key>escaping</key>
<integer>127</integer>
<key>script</key>
<string>./lipsum.sh -t paragraphs -c {query}</string>
<string>count={query}
if [[ $count = "" ]]; then
count=1
fi
sh lipsum.sh -t paragraphs -c $count</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -390,7 +414,7 @@
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>4.0.0</string>
<string>4.0.1</string>
<key>webaddress</key>
<string>https://github.com/alexchantastic/alfred-lipsum-workflow</string>
</dict>
Expand Down

0 comments on commit b7372f6

Please sign in to comment.