Skip to content
프로젝트

소개

표준 입출력과 네이티브 GUI를 모두 사용하는 OS X용 퍼지 매처

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
+2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

choose

GitHub release (latest by date)

Fuzzy matcher for OS X that uses both std{in,out} and a native GUI


Animated Screenshot

Install

For the latest release, go to the releases section and download the binary.

Homebrew installation

Keep in mind that we do not maintain the homebrew formula here! So check the version you have via choose -v and compare it to the latest version in the releases section .

brew install choose-gui

Build and Install Documentation

From root of repository, run:

make docs
make install-docs

You can then issue man choose to read the manual.

Note that this requires pandoc to be installed on your system to build the manual page.

Usage

List the content from current directory

ls | choose

Open apps from the applications directories

ls /Applications/ /Applications/Utilities/ /System/Applications/ /System/Applications/Utilities/ | \
    grep '\.app$' | \
    sed 's/\.app$//g' | \
    choose | \
    xargs -I {} open -a "{}.app"

Query Passwords from password-store

Assuming that your passwordstore directory is $HOME/.password-store, the following will find a list of all the files containing passwords (using extension .gpg), strip off the pathing so you have something like Personal/Coding/github.com, present them as options using choose, and then if an option is selected this will run pass show -c OPTION to put the password into your clipboard.

find $HOME/.password-store -type f -name '*.gpg' | \
    sed "s|.*/\.password-store/||; s|\.gpg$||" | \
    choose | \
    xargs -r -I{} pass show -c {}

Use as a snippet manager

Suppose you have some snippets in a text file and you want to quickly search and paste them with choose. Here is a command that you can bind to some shortcut with something like Karabiner:

cat snippets_separated_with_two_newline_symbols.txt \
    | choose -e -m -x \n\n - \
    | pbcopy - \
    && osascript -e 'tell application "System Events" to keystroke "v" using command down'

This will prompt choose, get its output, copy it to pasteboard, and trigger a paste shortcut command+v.

For this to work in Karabiner, you need to give it access via

Privacy & Security -> Accessibility -> karabiner_console_user_server 

Typically located at /Library/ApplicationSupport/org.pqrs/Karabiner-Elements/bin/karabiner_console_user_server, otherwise you will get System Events got an error: osascript is not allowed to send keystrokes. (1002)

License

See MIT LICENSE.

관련 프로젝트 살펴보기

불러오는 중…