💾 Archived View for ait.place › dot › nnn › .config › nnn › plugins › mpv_sel.txt captured on 2021-12-03 at 14:04:38.

View Raw

More Information

-=-=-=-=-=-=-

#!/usr/bin/env bash

if [ -s "$sel" ]; then
	list=$(tr '\0' '\n' < "$sel")
	while read -r item;do
		if [ -z "$things" ];then
			things="\"$item\""
		else
			things="$things \"$item\""
		fi
	done <<< "$list"
	echo "$things" | xargs mpv
fi