Backgournd copy/move files in vifm with task-spooler

I recently found out that you can advantageously use a batch/queue task
system like task-spooler (tsp or ts executable, depending on your
distro) in a variety of situations.

For instance, to copy or move files in vifm :

" mc-like maps
" copy
nnoremap <f5> :!tsp rsync -av --progress %f %D<cr>
" move
nnoremap <f6> :!tsp rsync -av --progress --remove-source-files %f %D<cr>

The copy/move will then be queued and run in the background. You can
check it with :

tsp

To cat a task output :

tsp -c task-id

https://viric.name/soft/ts/

Idea inspired by this gotbletu video:

https://inv.tux.pizza/watch?v=zrBUZ2g5_O4

#unix #batch #queue

@unix