4 个版本 (破坏性更新)
0.4.0 | 2021年11月24日 |
---|---|
0.3.0 | 2021年11月24日 |
0.2.0 | 2019年9月14日 |
0.1.0 | 2019年8月18日 |
#1550 在 文本处理
620KB
148 代码行
查找 Unicode
轻松查找 Unicode 字符!这是一个简单的命令行应用程序,可以轻松找到 Unicode 字符。
安装
cargo安装 find_unicode
用法
- 从您的终端运行
fu
fu
- 开始输入。
fu
将显示与您的查询匹配的描述的 Unicode 字符。 - 如果您正在寻找单个字符,按 Enter 键选择它并退出。
- 如果您正在寻找多个字符,按 Tab 键选择一个并继续搜索。
- 默认情况下,搜索表达式是正则表达式。
高级用法
有关更多高级配置选项,请参阅帮助信息
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
重新生成数据
- 下载 UCD 数据
curl https://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt > src/UnicodeData.txt
- 下载 Nerd Fonts 数据
curl https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/css/nerd-fonts-generated.css > src/NerdFontsData.css
- 重新生成美化数据
cargo run --bin gen_data
- 将生成数据复制到 src 并提交。
依赖项
~12–21MB
~293K SLoC