I typically use fzf for this purpose, and even on some rare occasions vim
#!/bin/sh
TEMP=“$(mktmp)”
cat > “$TEMP”
$EDITOR “$TEMP”
cat “$TEMP”Not as succinct but you can still pipe your output to vim, make your edits, run :w vimpipe to save your edits, and pipe the output of your vimpipe file to another command.
find . -type f -name \.txt | vim -; cat vimpipe | xargs rm