Coder Social home page Coder Social logo

karthikiyengar / unipicker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeremija/unipicker

0.0 1.0 0.0 638 KB

Search unicode characters in console and copy to clipboard

License: MIT License

Python 4.65% Shell 14.38% Perl 77.11% Makefile 3.86%

unipicker's Introduction

unipicker

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

Screenshots

Running with fzf:

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
  • NixOS/Nix: nix-env -iA nixpkgs.unipicker

The pbcopy utility will be used on a Mac, which is installed by default.

Installation

make install

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

make install PREFIX=$HOME/.local

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

unipicker's People

Contributors

freso avatar jeremija avatar karthikiyengar avatar kba avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.