Skip to content

jimmykarily/fuzzygui

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

This is a fuzzy finder which can be used in a bash pipe command chain to achieve anything you can imagine.

It is inspired by the awesome fzf cli but uses a GTK dialog box instead of the console.

Usage

$ xargs -r0a <(find * | fuzzygui) gvim

Use case 1

Fuzzy finder for pass manager (regex removes extensions)

function fuzzypass {
  pushd ~/.password-store
  find * | fuzzygui | sed 's/\(.*\)\..*/\1/' | xargs pass -c1
  popd
}

Use case 2

Implement a contacts directory with search and flat files.

We assume a directory structure where each file is named after a contact and each line in the file is a phone number or some other contact detail:

~/Dropbox/phones $ cat Ada\ Lovelace
email: ada@example.com
phone: +30 1234567890

A script like the following will let you edit the contact using fuzzy search:

find.sh:

find * ! -name 'find.sh' -exec awk '{print FILENAME " - " $0}' {} \;  | fuzzygui |  sed -r 's/(.*) -.*/\1/' | xargs -d"\n" gvim

About

A fuzzy finder with GUI (inspired by fzf)

Resources

Stars

Watchers

Forks

Packages

No packages published