[Feature Request] Keyboard Shortcuts - make 'Discard Image' less "wonky"
It'd be much more convenient to be able to press a shortcut to easily remove images as you use the arrow keys to preview them.
Am I overlooking an option somewhere?
I just saw in the code that the ability is there, but it acts a bit odd. If you press delete it doesn't always delete until you press it again. After deletion, it also won't select the next image. So pressing "Delete, Delete, left" will skip an image.
Fixed in v1.35.0
Cursor should also move to the next image now (but doesn't select it), so pressing left/right has the expected behavior.
Awesome. I wanted the current item to be selected by default so I could quickly decide if I want to delete (plus it feels more intuitive); I generate hundreds of images, so having to press Space and then Delete if I don't like the image is tedious. I made a tweak to the _discard_image to do so. Just posting it in case someone else wanted the same functionality.
From self.setCurrentRow(next_item, QItemSelectionModel.SelectionFlag.Current
To
self.setCurrentRow(next_item, QItemSelectionModel.SelectionFlag.Current | QItemSelectionModel.SelectionFlag.Select)
Had to use AI to sort of understand. I would've made a setting in the plug-in, but I know nothing on how Krita and plug-ins interact (don't have the time/energy to learn those specifics)