Skip to content

Find Unicode characters the easy way: from the command line

Notifications You must be signed in to change notification settings

pierrechevalier83/find_unicode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find Unicode

Find Unicode characters, the easy way! A simple command line application to find unicode characters with minimum effort.

alt tag

Installation

cargo install find_unicode

Usage

  • Run fu from your terminal:
fu
  • Start typing. fu will show the unicode characters for which the description matches your query.
  • If you're looking for a single character, hit Enter to select it and exit.
  • If you're looking for multiple characters, hit Tab to select one and keep searching.
  • By default, the searching expression is a regular expression.

Advanced usage

For more advanced configuration options, check out the help:

fu --help
fu 0.1.0
Pierre Chevalier <pierrechevalier83@gmail.com>

Find Unicode characters with ease.

Simply type a description of the character you are looking for. Once you found the character you were after, hit Enter.
Selecting multiple characters is also possible: hit tab to select a character and continue browsing.

USAGE:
    fu [OPTIONS] [initial_query]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --height <height>    Height of fu's window relative to the terminal window [default: 50%]
        --layout <layout>    Position of fu's window relative to the prompt [default: Below]  [possible values: Above,
                             Below]
        --search <search>    Search mode [default: Regex]  [possible values: Regex, Exact, Fuzzy]

ARGS:
    <initial_query>    Initial query, if any

To regenerate the data

  • Download the UCD Data:
curl https://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt > src/UnicodeData.txt
  • Download the Nerd Fonts Data:
curl https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/css/nerd-fonts-generated.css > src/NerdFontsData.css
  • Regenerate the prettified data:
cargo run --bin gen_data
  • Copy the generated data to src and commit it.