Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a new Git emoji category #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions emojisCharacters.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,14 @@ var ALL = [
'🇹🇴','🇹🇷','🇹🇹','🇹🇻','🇹🇼','🇹🇿','🇺🇦','🇺🇬','🇺🇲','🇺🇳',
'🇺🇸','🇺🇾','🇺🇿','🇻🇦','🇻🇨','🇻🇪','🇻🇬','🇻🇮','🇻🇳','🇻🇺',
'🇼🇫','🇼🇸','🇽🇰','🇾🇪','🇾🇹','🇿🇦','🇿🇲','🇿🇼'
], [
//-----git (https://gitmoji.carloscuesta.me/)
'🎨','⚡️','🔥','🐛','🚑','✨','📝','🚀','💄','🎉',
'✅','🔒','🍎','🐧','👣','🐚','🏁','🤖','🍏','🔖',
'🚨','🚧','💚','⬇️','⬆️','📌','👷','📈','♻️','➖',
'🐳','➕','🔧','🌐','✏️','💩','⏪','🔀','📦','👽',
'🚚','📄','💥','🍱','👌','♿️','💡','🍻','💬','🗃',
'🔊','🔇','👥','🚸','🏗','📱','🤡','🥚','🙈','📸'
]
];

Expand Down
67 changes: 66 additions & 1 deletion emojisKeywords.js
Original file line number Diff line number Diff line change
Expand Up @@ -1737,7 +1737,72 @@ var ALL_KEYWORDS = [
//['scotland'],
//['wales']

]
], [

//Git
//https://gitmoji.carloscuesta.me/

['format code', 'improve structure'],
['Improve performance'],
['remove code', 'remove file'],
['fix a bug'],
['critical hotfix'],
['introduce new feature'],
['write docs'],
['deploy stuff'],
['update ui', 'style file'],
['initial commit'],
['add test'],
['fix security issue'],
['macOS'],
['linux'],
['gnome'],
['shell'],
['windows'],
['android'],
['iOS'],
['release', 'version tag'],
['remove linter warning'],
['work in progress', 'wip'],
['fix CI build'],
['downgrade dependency'],
['upgrade dependency'],
['pin dependency'],
['add CI build system'],
['add analytics', 'track code'],
['refactore code'],
['remove a dependency'],
['work about docker'],
['add a dependency'],
['change configuration file'],
['internationalization', 'localization'],
['fix typo', 'edit'],
['write bad code', 'need to be improved'],
['revert changes'],
['merge branche'],
['update compiled file'],
['external API changes'],
['move file', 'rename file'],
['add licence', 'update licence'],
['introduce breaking changes'],
['add assets', 'update assets'],
['code review'],
['improve accessibility'],
['document source code'],
['write code drunkenly'],
['update text', 'update literal'],
['perform database related changes'],
['add logs'],
['remove logs'],
['add contributor'],
['improve user experience', 'usability', 'ux'],
['make architectural changes'],
['work on responsive design'],
['mock things'],
['add easter egg'],
['update gitignore file'],
['add snapshot', 'screenshot']
]
];


25 changes: 13 additions & 12 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,19 +730,20 @@ const EmojisMenu = new Lang.Class({
this.emojiCategories = [];

/* creating new categories with emojis loaded in EMOJIS_CHARACTERS */
this.emojiCategories[0] = new EmojiCategory( _('Smileys & Body'), 'face-smile-symbolic', 0 );
this.emojiCategories[1] = new EmojiCategory( _('Peoples & Clothing'), 'contact-new-symbolic', 1 );
this.emojiCategories[2] = new EmojiCategory( _('Animals & Nature'), 'face-monkey-symbolic', 2 );
this.emojiCategories[3] = new EmojiCategory( _('Food & Drink'), 'my-caffeine-on-symbolic', 3 );
this.emojiCategories[4] = new EmojiCategory( _('Travel & Places'), 'airplane-mode-symbolic', 4 );
this.emojiCategories[5] = new EmojiCategory( _('Activities & Sports'), 'applications-games-symbolic', 5 );
this.emojiCategories[6] = new EmojiCategory( _('Objects'), 'alarm-symbolic', 6 );
this.emojiCategories[7] = new EmojiCategory( _('Symbols'), 'emblem-default-symbolic', 7 );
this.emojiCategories[8] = new EmojiCategory( _('Flags'), 'flag-symbolic', 8 );
this.emojiCategories[0] = new EmojiCategory( _('Smileys & Body'), 'face-smile-symbolic', 0 );
this.emojiCategories[1] = new EmojiCategory( _('Peoples & Clothing'), 'contact-new-symbolic', 1 );
this.emojiCategories[2] = new EmojiCategory( _('Animals & Nature'), 'face-monkey-symbolic', 2 );
this.emojiCategories[3] = new EmojiCategory( _('Food & Drink'), 'my-caffeine-on-symbolic', 3 );
this.emojiCategories[4] = new EmojiCategory( _('Travel & Places'), 'airplane-mode-symbolic', 4 );
this.emojiCategories[5] = new EmojiCategory( _('Activities & Sports'), 'applications-games-symbolic', 5 );
this.emojiCategories[6] = new EmojiCategory( _('Objects'), 'alarm-symbolic', 6 );
this.emojiCategories[7] = new EmojiCategory( _('Symbols'), 'emblem-default-symbolic', 7 );
this.emojiCategories[8] = new EmojiCategory( _('Flags'), 'flag-symbolic', 8 );
this.emojiCategories[9] = new EmojiCategory( _('Git'), 'accessories-text-editor-symbolic', 9 );
},

_addAllCategories: function() {
for (let i = 0; i< 9; i++) {
for (let i = 0; i< this.emojiCategories.length; i++) {
this.menu.addMenuItem(this.emojiCategories[i]);
}
},
Expand All @@ -753,14 +754,14 @@ const EmojisMenu = new Lang.Class({
can_focus: false
});
this.categoryButton = [];
for (let i = 0; i< 9; i++) {
for (let i = 0; i< this.emojiCategories.length; i++) {
this._buttonMenuItem.actor.add(this.emojiCategories[i].getButton(), { expand: true, x_fill: false });
}
},

clearCategories: function(){
// removing the blue color of previously opened category's button
for (let i = 0; i< 9; i++) {
for (let i = 0; i< this.emojiCategories.length; i++) {
this.emojiCategories[i].getButton().style = 'background-color: transparent;';
}

Expand Down
Binary file modified schemas/gschemas.compiled
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<description>Possible values can be 'top' or 'bottom'.</description>
</key>
<key type="i" name="nbcols">
<default>11</default>
<default>12</default>
<summary>Number of emojis per line</summary>
<description>Sets the number of column of emojis to display.</description>
</key>
Expand Down