arp242 / uni

Query the Unicode database from the commandline, with good support for emojis
MIT License
790 stars 19 forks source link

FZF integration #2

Closed Seirdy closed 4 years ago

Seirdy commented 4 years ago

Adding an integration to FZF could make this tool replace emoji-fzf. I'm up for implementing this and opening a PR after exams finish.

arp242 commented 4 years ago

Sounds good as long as it's not too complex (judging from that link, it works similar to dmenu/rofi by just filtering stdin?) If it does turn out to be very complex it's probably best off in its own repo, as I'll be the one who will have to maintain it (and I don't know anything about fzf) :-)

rolandwalker commented 4 years ago

It just filters stdin, so in brief

#!/bin/sh
uni -q emoji "${*:-all}" | fzf | cut -d' ' -f1
arp242 commented 4 years ago

Looks good! Send a patch and I'll merge it.