#!/usr/bin/env bash list_files() { if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then git -c core.quotePath=false ls-files --cached --others --exclude-standard else find . -type f -not -path "*/.*" fi } files=$(list_files | sk --no-info "$@") || exit $VISUAL "$files"