ahodesuka / ahoviewer

A GTK image viewer, manga reader, and booru browser
MIT License
479 stars 30 forks source link

Ability to delete an image #119

Closed juippis closed 3 years ago

juippis commented 3 years ago

Hey,

first of all thanks for the greatest image viewer!

As to the issue, I'd like a feature to delete an image we're currently browsing locally - or from the left pane. Right click, hotkey, through toolbar menu... doesn't matter. It's rather annoying having to locate the file from your disk again.

ahodesuka commented 3 years ago

By default this has a keybinding of Shift+Delete. Confirmation will be asked for before deleting. An attempt will be made to move the file to trash/recycle bin if supported, and if that fails the file will be deleted permanently. The confirmation dialog can be turned off from the preferences dialog and from the confirmation dialog itself.

Deleting files from archives is not supported.

Also on Windows video files cannot be deleted while playing, gstreamer seems to have it actively open.

juippis commented 3 years ago

Thank you! Works like a charm.