Like a mashup of https://unicode.party/ and https://utf8.xyz/ but it's completely local in your terminal!
pipx install utf-cli
Run utf
:
utf
Then:
- Type your query
- Hit Enter, Tab, or the down arrow key to select the first result
- Use Tab or arrow keys to move between results
- Hit Enter to copy the character
To copy the Python code point escape sequence (e.g. \u2728
or \U00002728
) hit the c
key.
To copy the HTML escape entity for a character (e.g. ©
) hit the h
key.
To copy the name for a character (e.g. Sparkling Heart
) hit the n
key.
Note that the mouse works also:
- Clicking on a result will also copy the character.
- Scrolling should work as expected
Before you start typing a query, a default character list will show up. The default characters are commonly searched for characters (by Trey's best guess of what's common).
The utf
program will keep track of every time you search for a character.
The characters you search for most often will show up near the beginning of the default character list.
This package is distributed under the terms of the MIT license.