Commit Graph

5 Commits

Author SHA1 Message Date
zenyd 885b9bd056 delete-file: option to move instead of delete 2022-04-22 00:08:36 +02:00
bitingsock efa300fb6b
key bind for list of delete marks (#27)
* key bind for list of delete marks

https://github.com/zenyd/mpv-scripts/issues/14

* make show list a toggle so we don't spam the terminal

* put showListTimer:resume() in condition

* undelete all and globalize timer

if timer is local showList() can't reference it

* add new keybinds

* add space to help wrapping

* better matching
2021-03-07 12:31:37 +01:00
Svetlin Ankov 9eefa4ee4a delete_file: fix for files not deleted on end of playlist
Currently, the selected files are deleted only when mpv is
exited via the quit command. If, however, the quit reason is
eof of the last file in the playlist, delete_file would not
delete any files.

To fix this use the correct event, i.e. shutdown, instead of
end-file.

See:

https://github.com/mpv-player/mpv/blob/master/DOCS/man/lua.rst#list-of-events
2018-05-31 13:55:19 +02:00
zenyd 3881ac9324 intentation... 2017-10-19 21:37:52 +02:00
zenyd 5cccb90061 add script delete_file.lua 2017-10-19 21:34:54 +02:00