GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - uriel1998/unipicker: Search unicode characters in console and copy to clipboard

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

34 Commits
34 Commits

Folders and files

NameName
Last commit message
Last commit date
fzf
fzf
 
 
.gitignore
.gitignore
 
 
Blocks.patch
Blocks.patch
 
 
Blocks.txt
Blocks.txt
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
generate-symbols.py
generate-symbols.py
 
 
symbols
symbols
 
 
unipicker
unipicker
 
 
unipickerrc
unipickerrc
 
 

Repository files navigation

unipicker

A CLI utility for searching unicode characters by description and optionally copying them to clipboard.

  • Screenshots
  • Dependencies
  • Installation
  • Usage
  • Configuration
  • Examples
  • License

Screenshots

Running with fzf:

Running with fzf

Running with fzf (version => 0.53) in tmux :

Running with fzf

Running with rofi -dmenu:

Running with rofi

Dependencies

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 ''"

Installation

make install

To install to your home directory instead of /usr/local:

make install PREFIX=$HOME/.local

Alternatively, if you're using Nix:

nix-env -iA nixpkgs.unipicker

Usage

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)

Configuration

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.

Examples

Using rofi instead of fzf:

unipicker --command "rofi -dmenu"

Using a different clipboard command

unipicker --copy-command pbcopy

License

MIT

About

Search unicode characters in console and copy to clipboard

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.