BestImageViewer / geeqie

claiming to be the best image viewer / photo collection browser
http://www.geeqie.org/
GNU General Public License v2.0
482 stars 79 forks source link

Don't auto select images when app was started with files on CLI #1484

Closed smyru closed 3 months ago

smyru commented 3 months ago

Setup:

Describe the bug When geeqie is started from command line with a wide selection of images, all images are auto selected after startup. Even as one browses through them with PageUp or PageDown, still all images are focused in the file view. Now when using Delete action ie. via Shift+Delete, all selected files will be deleted. The confirmation dialog does not look much different from a single file deletion, as only one image preview will be shown.

To reproduce Steps to reproduce the behavior:

  1. Start geeqie from command line in a folder full of images, ie.: $ geeqie *.jpg
  2. Note that all JPEG images are selected in the file list
  3. Browse through them
  4. Hit Shift+Delete to delete seemingly the image you are viewing.

Expected behavior Do not auto select all images from CLI arguments. When viewing images the action shall affect only the image being viewed.

caclark commented 3 months ago

There are some usability problems that will take a while to resolve.

I suggest the following as an immediate workaround:

Go to Edit/Preferences/Windows and select Remember Dialog Window Positions. Open a Delete dialog and resize the window downwards. The left-hand pane will then clearly show when multiple files have been selected. Press Cancel. The window size will be remembered.

When deleting a single file, do not use a keyboard shortcut but instead right-click on the image pane and select Delete. The single image being viewed will then be the only one selected for deletion.

smyru commented 3 months ago

I just got a one of those "never forget lessons" as I have deleted all of vacation photos this way (I have got a backup though). So I will remember to be cautious since now on. Just making sure, others won't be affected as much :-)

caclark commented 3 months ago

I do not think that deselecting the files is a good idea.

There is now a commit that provides the following:

The warning icon is necessarily in the same font as the rest of the text, which makes it rather small.

If you feel it is appropriate, please reopen this Issue.