A script using junegunn/fzf
and (optionally) sharkdp/bat to present a list of files
from a directory and dump a chosen file to stdout, for purpose of managing
small repetable snippets of text or code. If option -w is passed then file is instead
copied to current directory using shutil.copy instead of being printed.
Requires (and works on any) Python 3.6 or above, as tested using https://github.com/FRex/anypython, due to usage of f-strings.
Also requires having junegunn/fzf, but
sharkdp/bat is optional (cat will be used if it's not available).