https://github.com/treyhunner/utf-cli
Search Unicode characters from your terminal
https://github.com/treyhunner/utf-cli
Last synced: 6 months ago
JSON representation
Search Unicode characters from your terminal
- Host: GitHub
- URL: https://github.com/treyhunner/utf-cli
- Owner: treyhunner
- License: mit
- Created: 2024-04-11T15:03:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-01T19:37:05.000Z (11 months ago)
- Last Synced: 2024-12-01T03:35:55.403Z (6 months ago)
- Language: Python
- Size: 1.8 MB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# utf-cli
[](https://pypi.org/project/utf-cli)
[](https://pypi.org/project/utf-cli)Like a mashup of https://unicode.party/ and https://utf8.xyz/ but it's completely local in your terminal!
[](https://asciinema.org/a/Pyf3UCAkuG0BXn10HOBFx68vO)
## Installation
```console
pipx install utf-cli
```## Usage
Run `utf`:
```console
utf
```Then:
1. Type your query
2. Hit Enter, Tab, or the down arrow key to select the first result
3. Use Tab or arrow keys to move between results
4. Hit Enter to copy the characterTo 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## Features
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.## License
This package is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.