leah blogs

July 2013

22jul2013 · Summer of Scripts: fp

fp is an interactive file picker based on dmenu. It tries to detect “projects” based on a simple heuristic (finding a .git, .hg, or a Makefile) and then runs dmenu with all files recursively except for some boring stuff.

Using dmenu has the nice benefit that typing any part of the file name makes selection very quick, even within deep directory structures. It’s also nice to use with command substitution:

% vim `fp`

little fp screencast

NP: Die Schnitter—Ich Fliege Über Das Meer

Copyright © 2004–2022