Skip to content

Commit

Permalink
Differentiate standard vs. custom emojis in result list
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrudolph committed Jan 2, 2016
1 parent 732627e commit 1fd1200
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions emoji-lookup.lbaction/Contents/Scripts/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class EmojiCharacter {
toLaunchbarItem() {
return {
title: this.launchbarItemTitle(),
label: this.launchbarItemLabel(),
action: 'paste',
actionArgument: this.characterOrTag(),
icon: this.launchbarIcon()
Expand All @@ -41,6 +42,14 @@ class EmojiCharacter {
return this.tag;
}

launchbarItemLabel() {
if (this.isUnicode()) {
return '';
} else {
return 'custom';
}
}

launchbarIcon() {
var resourcesPath = Action.path + '/Contents/Resources/';
if (this.isUnicode()) {
Expand Down

2 comments on commit 1fd1200

@jasonrudolph
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

screenshot

@jasonrudolph
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Custom emoji supported by this action:

screenshot

Please sign in to comment.