-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: FVCproductions <[email protected]>
- Loading branch information
FVCproductions
committed
Sep 19, 2016
1 parent
77f47af
commit c6f72d4
Showing
1,751 changed files
with
3,851 additions
and
316 deletions.
There are no files selected for viewing
Binary file removed
BIN
-63.6 KB
...eferences/workflows/user.workflow.2EDC58AE-2D1B-4FD0-9918-4C978707BE48/icon.png
Binary file not shown.
189 changes: 0 additions & 189 deletions
189
...alfredpreferences/workflows/user.workflow.2EDC58AE-2D1B-4FD0-9918-4C978707BE48/info.plist
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...r.workflow.2EDC58AE-2D1B-4FD0-9918-4C978707BE48/packal/com.alfredapp.amio.emojifinder.pub
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...eferences/workflows/user.workflow.2EDC58AE-2D1B-4FD0-9918-4C978707BE48/packal/package.xml
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
...ed.alfredpreferences/workflows/user.workflow.C9B8D2E4-87DE-4ADF-A4E9-056439717927/LICENSE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
octocat, squirrel, shipit | ||
Copyright (c) 2012 GitHub Inc. All rights reserved. | ||
|
||
bowtie, neckbeard | ||
Copyright (c) 2012 37signals, LLC. All rights reserved. | ||
|
||
feelsgood, finnadie, goberserk, godmode, hurtrealbad, rage 1-4, suspect | ||
Copyright (c) 2012 id Software. All rights reserved. | ||
|
||
trollface | ||
Copyright (c) 2012 whynne@deviantart. All rights reserved. | ||
|
||
All other emoji images | ||
Copyright (c) 2012 Apple Inc. All rights reserved. | ||
|
||
All existing code | ||
Copyright 2013 Carlos Galdino | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
36 changes: 36 additions & 0 deletions
36
...ferences/workflows/user.workflow.C9B8D2E4-87DE-4ADF-A4E9-056439717927/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Search Emoji codes and symbols using Alfred 2 | ||
|
||
This simple workflow lets you search emoji codes and their symbols. | ||
|
||
## Copy the emoji code to use on Campfire, GitHub, etc. | ||
Usage: `emoji [alt key] [query]` | ||
|
||
After you hit `enter` the code of the selected emoji will be copied to your | ||
clipboard. | ||
|
||
## Copy the actual emoji symbol to use on any OS X app. | ||
Usage: `emoji [query]` | ||
|
||
After you hit `enter` the symbol of the selected emoji will be copied to your | ||
clipboard. | ||
|
||
## Customizing the keywords: | ||
|
||
If you don't like the keywords that are used for triggering the search you can | ||
customize it directly on Alfred. Some suggested using `:` for searching the | ||
emoji code and `emoji` for the actual symbols. | ||
|
||
### Last but not least: | ||
|
||
* __The `query` argument is optional for both commands. If you don't specify a `query`, | ||
the whole list of emoji will be presented.__ | ||
|
||
* __You can also search an emoji using related words. Check the full list | ||
[here][related words link]. And also contribute with new words.__ | ||
|
||
[DOWNLOAD](http://bit.ly/10Azqx2) | ||
|
||
![](http://img.carlosgaldino.com/alfred-emoji-workflow_Alfred_2_workflow_for_searching_emoji_codes._2016-01-23_16-14-26.png) | ||
|
||
[related words link]: | ||
https://github.com/carlosgaldino/alfred-emoji-workflow/blob/master/related_words.rb |
43 changes: 43 additions & 0 deletions
43
...d.alfredpreferences/workflows/user.workflow.C9B8D2E4-87DE-4ADF-A4E9-056439717927/emoji.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
require './emoji_symbols' | ||
require './related_words' | ||
|
||
def item_xml(options = {}) | ||
<<-ITEM | ||
<item arg="#{options[:arg]}" uid="#{options[:uid]}"> | ||
<title>#{options[:title]}</title> | ||
<subtitle>#{options[:subtitle]}</subtitle> | ||
<icon>#{options[:path]}</icon> | ||
</item> | ||
ITEM | ||
end | ||
|
||
def match?(word, query) | ||
word.match(/#{query.gsub(/\\ /, '').split('').join('.*')}/i) | ||
end | ||
|
||
images_path = File.expand_path('../images/emoji', __FILE__) | ||
|
||
query = Regexp.escape(ARGV.first).delete(':') | ||
|
||
related_matches = RELATED_WORDS.select { |k, v| match?(k, query) || v.any? { |r| match?(r, query) } } | ||
|
||
# 1.8.7 returns a [['key', 'value']] instead of a Hash. | ||
related_matches = related_matches.respond_to?(:keys) ? related_matches.keys : related_matches.map(&:first) | ||
|
||
image_matches = Dir["#{images_path}/*.png"].map { |fn| File.basename(fn, '.png') }.select { |fn| match?(fn, query) } | ||
|
||
matches = image_matches + related_matches | ||
|
||
items = matches.uniq.sort.map do |elem| | ||
path = File.join(images_path, "#{elem}.png") | ||
emoji_code = "#{elem}" | ||
|
||
emoji = EMOJI_SYMBOLS[elem.to_sym] | ||
|
||
item_xml({ :arg => emoji_code, :uid => elem, :path => path, :title => emoji_code, | ||
:subtitle => "Copy \"#{emoji}\" (#{elem}) to clipboard" }) | ||
end.join | ||
|
||
output = "<?xml version='1.0'?>\n<items>\n#{items}</items>" | ||
|
||
puts output |
Oops, something went wrong.