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