{ pkgs }: let inbox = "~/Sync/vault/inbox"; in pkgs.writers.writeNuBin "inboxreview" /*nu*/ '' let inbox = "${inbox}" | path expand let iota_paths = ls $inbox | get name $iota_paths | each {|path| let contents = $path | open print $"\n(ansi purple)($contents)(ansi reset)\n" let deletion_confirmation = match (input "Delete? [Y/n] ") { "" => true, "Y" => true, "y" => true, "n" => false, _ => false, } if $deletion_confirmation { rm $path } } | null if ($iota_paths == []) { print "No inbox items!" } ''