Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nate-parrott committed Jan 1, 2015
1 parent 163d177 commit 4d1cbd4
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions FlashlightApp/EasySIMBL/Flashlight-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.95.3</string>
<string>0.95.4</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -49,7 +49,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>26</string>
<string>27</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ - (NSString *)bash:(NSString*) args {
task.standardInput = pipeIn;
task.standardOutput = pipeOut;

[task waitUntilExit];
[task launch];
[task waitUntilExit];

NSData *data = [file readDataToEndOfFile];
[file closeFile];
Expand Down
Binary file removed PluginDirectories/1/emoji.bundle/Screenshot.jpg
Binary file not shown.
Binary file added PluginDirectories/1/emoji.bundle/Screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions PluginDirectories/1/emoji.bundle/examples.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
emoji ~emoji(grinn)
gemoji ~gemoji(grinn)
:~gemoji(grinn):?
~emoji(happy) emoji
6 changes: 3 additions & 3 deletions PluginDirectories/1/emoji.bundle/info.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "emoji",
"displayName": "Emoji",
"description": "Shows emojicons",
"examples": ["emoji grin", "emoji heart", ":rocket:"],
"categories": ["Utilities"],
"description": "Search and copy emoji.",
"examples": ["emoji grin", "heart emoji", ":rocket:"],
"categories": ["Utilities", "Featured"],
"creator_name": "Marc Bachmann",
"creator_url": "https://github.com/marcbachmann/flashlight-emoji"
}
4 changes: 2 additions & 2 deletions PluginDirectories/1/emoji.bundle/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def build_html(appearance, content):
</head>
<script>
function copyToClipboard(emoji) {
command = 'echo "'+emoji+'" | LANG=en_US.UTF-8 pbcopy';
command = 'echo "'+emoji+'" | LANG=en_US.UTF-8 pbcopy && osascript -e \\'display notification "Copied!" with title "Flashlight"\\'';
flashlight.bash(command);
}
</script>
Expand Down Expand Up @@ -190,7 +190,7 @@ def results(params, original_query):

def run(output):
import subprocess
subprocess.call(['echo "'+output+'" | LANG=en_US.UTF-8 pbcopy'], shell=True)
subprocess.call(['echo "'+output+'" | LANG=en_US.UTF-8 pbcopy && osascript -e \'display notification "Copied!" with title "Flashlight"\''], shell=True)


# print results({'~emoji': 'grin'}, 'emoji grinn')
Expand Down

0 comments on commit 4d1cbd4

Please sign in to comment.