@ -1,29 +0,0 @@
|
|||||||
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.
|
|
@ -1,30 +0,0 @@
|
|||||||
# 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 [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: `symoji [query]`
|
|
||||||
|
|
||||||
After you hit `enter` the symbol of the selected emoji will be copied to your
|
|
||||||
clipboard.
|
|
||||||
|
|
||||||
### 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://f.cl.ly/items/3B18383s2O0B2Z0b2g11/Screen%20Shot%202013-12-06%20at%201.06.25%20AM.png)
|
|
||||||
|
|
||||||
[related words link]:
|
|
||||||
https://github.com/carlosgaldino/alfred-emoji-workflow/blob/master/related_words.rb
|
|
@ -1,43 +0,0 @@
|
|||||||
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}/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_arg = ARGV.size > 1 ? EMOJI_SYMBOLS.fetch(elem.to_sym, emoji_code) : emoji_code
|
|
||||||
|
|
||||||
item_xml({ :arg => emoji_arg, :uid => elem, :path => path, :title => emoji_code,
|
|
||||||
:subtitle => "Copy #{emoji_arg} to clipboard" })
|
|
||||||
end.join
|
|
||||||
|
|
||||||
output = "<?xml version='1.0'?>\n<items>\n#{items}</items>"
|
|
||||||
|
|
||||||
puts output
|
|
Before Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 4.0 KiB |