A CLI utility for searching unicode characters by description and optionally copying them to clipboard.
Running with fzf:
Running with fzf (version => 0.53) in tmux :
Running with rofi -dmenu:
You need a selector command, default is fzf
To copy to clipboard on Linux you need xclip
xclip can be installed in various linux distros:
- Ubuntu/Debian:
apt-get install xclip - Arch Linux:
pacman -S xclip
The pbcopy utility will be used on a Mac, which is installed by default.
If the fzf version is greater than 0.53, it will use the --tmux switch by
default. If not run in tmux, it will have no effect. Uses awk and bc to
calculate the fzf version; if they are not present, it will silently assume
the version to be < 0.53 .
If you wish to bind it to a key in tmux to invoke as in the video above, use the following:
unbind e
bind e if-shell -b '/path/to/unipicker' "send-keys ''"
If you want to add command-line arguments, do it like so:
unbind e
bind e if-shell -b '/path/to/unipicker --copy-command /path/to/copycommand' "send-keys ''"
make install
To install to your home directory instead of /usr/local:
make install PREFIX=$HOME/.localAlternatively, if you're using Nix:
nix-env -iA nixpkgs.unipicker
Select unicode character by description Usage: unipicker [--command cmd] [--copy-command cmd ] [--copy] [--list] Arguments: --command Overrides default select command --copy-command Override copy to clipboard command, implies --copy --copy Copy to clipboard --list Only list the symbols, do not select or copy Variables: UNIPICKER_SELECT_COMMAND Command to use for selecting (= fzf) UNIPICKER_COPY_COMMAND Command to use for copying (= pbcopy) UNIPICKER_SYMBOLS_FILE Location of symbols (= /usr/local/share/unipicker/symbols)
You can configure both the selector command and the copy command. There are two main configuration files which are sourced by unipicker:
/etc/unipickerrc${HOME}/.unipickerrc
The default settings can be seen in the unipickerrc file. The default copy
command will be determined based on the OS, but it can be overridden.
The command line arguments can be used to override the variables set.
Using rofi instead of fzf:
unipicker --command "rofi -dmenu"Using a different clipboard command
unipicker --copy-command pbcopy