#!/bin/sh

buffer=/tmp/sdrag-${USER}

while read -r "$@"; do
  action=${REPLY}
  read -r
  filename=${REPLY}
  printf '%7s: ' "${action}"
  ${action} "${filename}" . </dev/tty
done <"${buffer}"

sclear
