#!/bin/sh # Search for files in local directory and edit selected in default editor. find . -type f | fzf --preview 'cat {}' --height 25 --layout reverse | \ xargs -r "$EDITOR"