Bug 181214

Summary: Delete an element (file/folder): next element should be selected by default
Product: [Applications] dolphin Reporter: mathesis <net-account>
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: bugseforuns, elvis.angelaccio, neundorf, serg, teod0r
Priority: NOR    
Version: 16.12.2   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Unspecified   
Latest Commit: Version Fixed In: 23.04

Description mathesis 2009-01-18 19:41:59 UTC
Version:            (using Devel)
Installed from:    Compiled sources

In a folder with at least 2 element (file or folder), delete of them.
No element is selected.

I would expect that the next element ("next" to be consistent with the current sorting method) be selected.
In case this was the last element, the previous element should be selected.

By "Selected", I mean highlighted as I would have click on it.
Comment 1 Peter Penz 2009-01-18 23:06:36 UTC

*** This bug has been marked as a duplicate of bug 161675 ***
Comment 2 mathesis 2009-01-18 23:15:07 UTC
Peter, there is a difference (I'm referring to the bug 161675): he says that the previous file is selected after deletion. I can only see light dashed box around the previous file but if you press F2 for instance it won't allow you to rename the previous file.

This is not what I call selected. For me, selected is ready for action on it and clearly highlighted (blue by default).
Comment 3 Peter Penz 2009-01-18 23:18:10 UTC
Ok, thanks for clarification, I've reopened this issue...
Comment 4 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:20:00 UTC
Resetting assignee to default as per bug #305719
Comment 5 Kai Uwe Broulik 2013-06-10 12:12:30 UTC
*** Bug 320906 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2017-09-03 16:35:11 UTC
*** Bug 185188 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2018-10-21 18:12:03 UTC
*** Bug 400116 has been marked as a duplicate of this bug. ***
Comment 8 Serg Podtynnyi 2023-02-07 08:32:53 UTC
Done in current branch
Comment 9 Patrick Silva 2023-02-07 12:41:28 UTC
On neon unstable, the next item is not selected after deleting by pressing delete key.
Comment 10 Serg Podtynnyi 2023-02-07 19:12:16 UTC
(In reply to Patrick Silva from comment #9)
> On neon unstable, the next item is not selected after deleting by pressing
> delete key.

Should be in next 23.04 version
Comment 11 Serg Podtynnyi 2023-02-27 08:02:13 UTC
Git commit 36dfe5795f3e70ad9ac4954544899bf38c919ca7 by Serg Podtynnyi.
Committed on 06/02/2023 at 03:47.
Pushed by felixernst into branch 'master'.

Selects next item in list after delete/trash actions
Related: bug 419914

M  +30   -0    src/views/dolphinview.cpp
M  +6    -0    src/views/dolphinview.h
M  +2    -0    src/views/dolphinviewactionhandler.cpp

https://invent.kde.org/system/dolphin/commit/36dfe5795f3e70ad9ac4954544899bf38c919ca7