Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 2.21 KB

Readme.md

File metadata and controls

41 lines (28 loc) · 2.21 KB

Alfred-UTF: Unicode Character Search Version badge

Alfred-utf - workflow screenshot

Simple workflow to replace now defunct Python 2 workflow. Uses pure SQLite3 - with fts5 and json1 extensions - which is still packaged with MacOS, unlike PHP or Python 2 in versions of MacOS 13+.

Usage

Search/show:

  • utf right arr - Search for a Unicode character by full-text matched name, alternative name, html entity or hexadecimal code
  • utf !<character> - Get details for a single exact character, except
  • utf !h - get HELP!
  • utf9 - Your top 9 Unicode characters

Result Actions:

  • Default action: copy the character (e.g. !)
  • Cmd - copy the HTML version (e.g. &excl;)
  • Option - copy the Unicode point for js/python/… (e.g. \u0021)
  • OptionCmd - copy the Unicode point for PHP (e.g. \u{0021})
  • Ctrl - copy the hex value(e.g. 21)
  • OptionCtrl - copy the full code point (e.g. 0021)
  • Use Copy result (Cmd+C) to copy the character name (e.g. exclamation mark)

↳ Result actions (except Copy result Cmd+C) also paste to the frontmost app

Tips

  • utf u0027 - you can prefix the full codepoint with u, and the matcher will mostly match this to the character's json value (\u0027), which means you get "find a Unicode codepoint" function for free
  • utf larr - one of the fields matched are html entities - use this for a precise and quick matching
  • utf :raw* query* - if you prefix your query with a colon, you'll gain access to the underlying technology - and you get to write raw SQLite FTS5 Match Query. Use this power for good

Installation

  1. Download the workflow
  2. Use the workflow

License

MIT License - see LICENSE © 2022 Adam Kiss. Databased was sourced with Uni by Martin Tournoij