Bug 181214 - Delete an element (file/folder): next element should be selected by default
Summary: Delete an element (file/folder): next element should be selected by default
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (show other bugs)
Version: 16.12.2
Platform: Compiled Sources Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
: 185188 320906 400116 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-18 19:41 UTC by mathesis
Modified: 2023-02-27 08:02 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 23.04
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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