mirror of
https://github.com/lelgenio/demoji.git
synced 2025-01-18 12:46:25 -03:00
Add support for more symbols
This commit is contained in:
parent
19ece99761
commit
f5b5413815
|
@ -4,6 +4,8 @@ use arboard::SetExtLinux;
|
|||
use clap::Parser;
|
||||
use emoji::lookup_by_glyph::iter_emoji;
|
||||
|
||||
mod symbols;
|
||||
|
||||
/// Simple program to list all emojis
|
||||
#[derive(Parser, Debug)]
|
||||
// #[command(author, version, about, long_about = None)]
|
||||
|
@ -98,6 +100,10 @@ fn write_emojis_to_stdout(args: &Args, mut out: impl Write) {
|
|||
|
||||
writeln!(&mut out, "{}: {}", emoji.glyph, text).ok();
|
||||
}
|
||||
|
||||
for (c, desc) in symbols::SYMBOLS {
|
||||
writeln!(&mut out, "{}: {}", c, desc).ok();
|
||||
}
|
||||
}
|
||||
|
||||
fn emoji_description(emoji: &emoji::Emoji, lang: &str) -> Option<String> {
|
||||
|
|
7394
src/symbols.rs
Normal file
7394
src/symbols.rs
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue