Skip to content

πŸ˜„ Emoji copy is a versatile extension designed to simplify emoji selection and clipboard management.

License

Notifications You must be signed in to change notification settings

FelipeFTN/Emoji-Copy

Repository files navigation

Emoji Copy 😎

This GNOME shell extension provides a emoji search pop-up menu. πŸš€
Want any emoji? It's right into your top bar!
This repo is a Fork from emoji-selector-for-gnome and was created for keeping the extension alive. Please feel free to use and contribute to this project. πŸ˜ƒ

Features πŸš€

  • keyboard shortcut to open the extension's menu (Super+. by default)
  • dynamic search (press Enter to copy the first result to the clipboard)
  • lots of configurable things
  • skin tone & gender modifiers
  • middle-click to set to the clipboard without closing the menu (or Ctrl+Enter)
  • right-click to add the emoji at the end of the current clipboard content (or Shift+Enter)

Keyboard navigation is designed to work with Tab, not the arrows.

Installation πŸ€

Recommended

The easiest way to install it is directly from Gnome Extensions: emoji-copy

Native packages

Work in progress...

We need to publish this project to most known package managers, like AUR, Fedora and so on.

Manual installation

Not recommended at all: installing the extension this way will prevent any further updates.

  1. Download and extract the ZIP, then open a terminal in the project's directory.
  2. Choose a way to install the extension:
    --> Make πŸ”₯
    $ make install

    --> NPM πŸ˜‡
    $ npm run deploy

    --> Shell scripts 🀨
    $ sh install.sh

    --> Hardcore πŸ’€
    $ cp -a ./emoji-copy@felipeftn $HOME/.local/share/gnome-shell/extensions

You may need to restart the GNOME Shell environment (Alt+F2 -> restart -> Enter).
(X11 only, if you are in Wayland, sign out and sign in from the session manually).

Debug and Test πŸ—

We have a lot of ways to debug and test our code. Currently, we already have a complete guide to debug and test our extension in a local environment described in debug.md file.
In a simpler way, you can debug the code in two ways:

    --> Make πŸ”₯
    $ make debug

    --> Gnome Dbus Session 🚧
    $ make && dbus-run-session -- gnome-shell --nested --wayland

Memory performance πŸ‘Ύ

Loading hundreds of small pictures and thousands of keywords into the memory is a lot. Despite a few attempts to optimize their loading, I'm not an expert at all concerning memory management, and the extension may be responsible for between 10MB and 60MB of memory usage, which is a lot. Don't blame the actual GS devs for it.

✨ Update:
Currently, we are loading emojis with SQLite. With a SQL query system, we were able to load just the necessary amount of emojis for each category. All the emojis are "pre-compiled" during the building process, and generates a emojis.db file at data directory (inside extension's directory).
We still can do a lot of improvements in the way we load and display these emojis. Maybe some skeletons and non-syncronous loading should be great to avoid slow loadings.

Fonts πŸ” 

It will be less ugly if you have the Β« Noto Emoji Β» font, the Β« Twitter Color Emoji Β» font, or the Β« JoyPixels Color Β» font installed on your system.

Contributors & translations πŸ«‚

Various contributions to the code itself:

The extension is currently available in the following languages:

  • Castillan (thanks to mario-mra)
  • Simplified chinese (thanks to larryw3i)
  • Dutch (thanks to vistaus)
  • Esperanto (thanks to nicolasmaia)
  • German (thanks to jonnius)
  • Italian (thanks to amivaleo)
  • Polish (thanks to alex4401)
  • Brazilian portuguese (thanks to nicolasmaia, picsi & frnogueira)
  • Turkish (thanks to mimoguz)

If you need another language, please contribute! β™₯