Closed bonnefoa closed 3 years ago
Sorry, this PR, and any PR about delete
operation will not be merged.
The delete
operation would be confused.
What it would delete?
Page? Which page in dual page mode? Which page in manga mode?
Book? The whole directory? What about non-image file?
How to delete? directly unlink? the 'trash' provided by DE?
Program could not read user's mind, and it shoud never do it.
mcomix already provided external command interface. Any operation out of mcomix should use it.
mcomix should be a viewer, but already did far more than that. No more, please.
Also see https://github.com/multiSnow/mcomix3/issues/115#issuecomment-623037323.
Add delete action to remove currently opened file or archive. Most of the code is copied from https://github.com/mxtthias/mcomix/blob/master/mcomix/main.py#L1023-L1067 with minor modifications.