Skip to content

KraXen72/obsidian-emoji-autocomplete

 
 

Repository files navigation

Obsidian Emoji Autocomplete

Obsidian plugin

Easily insert emoji by their shortcodes

✨ This plugin was featured on Obsidian Addict, in several articles - Thank you!

Features

  • Get autocomplete/typeahead suggestions for emoji
  • Highlight matched part of suggestion (optional)
  • Consider emoji history in suggestions (optional)
  • Supports searching by emoji tags (optional)
    • typing shuffle will find 🔀 (twisted_rightwards_arrow)
    • Show original shortcode inline when an emoji is found by tag (optional)
  • Hide OS unsupported emoji (optional)
  • Immediately replace emoji / keep as shortcode & show in preview mode
  • Remove diacritics when searching for an emoji (optional)
  • Replace flag emoji with nicer font (optional)
  • Improved performance over Emoji Shortcodes - more information
  • Uses the gemoji library to always have an up-to-date list of emoji
  • Uses the uFuzzy library and a custom sorting algorithm for better fuzzy search suggestions

Example

  • :joy: will become 😂
  • :heart: will become ❤

Disclaimers

How to install

  1. Go to Community Plugins in your Obsidian Settings and disable Safe Mode
  2. Click on Browse and search for "Emoji Autocomplete"
  3. Click install
  4. Toggle the Plugin on in the Community Plugins Tab

How to install (from source)

  1. git clone it into <your vault>/.obsidian/plugins
  2. npm i or pnpm i (ideal)
  3. npm run dev or pnpm dev (ideal)
  4. Turn the plugin on inside of Obsidian

Support plugin development

If you find this Plugin helpful, consider it's further development or just say a small thank you

Support KraXen72

Creator of Emoji Autocomplete and all the features on top of Emoji Shortcodes

liberapay kofi

Support phibr0

Creator of Emoji Shortcodes, the plugin Emoji Autocomplete was initially based on

kofi

Credits

Thanks to @claremacrae for rigorous testing of this plugin, which led to a significant performance improvements. libraries / packages that were used but modified or otherwise embedded (not in package.json)

  • is-emoji-supported modified the canvas with willReadFrequently: true and custom cache handling
  • country-flag-emoji-polyfill took the font and wrote custom applying logic
  • lucide icon pack and icones.js.org for several nice svg icons

Performance Improvements

Emoji shortcodes has an issue where it slows down the Tasks and Dataview plugins by a huge amount.
(You can check the progress on the issue in in this issue)
speed comparison
credit: @claremacrae 03/2024

About

Emoji Shortcodes Autocomplete for Obsidian

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 88.0%
  • JavaScript 7.1%
  • CSS 4.9%