Skip to content

Nemo loses focus and doesn't scroll to selected item after changing sort order in list view #3691

@vendol21

Description

@vendol21

Distribution

Mint 22.3

Package version

6.6.3

Frequency

Always

Bug description

In Nemo in list view, when an item is selected and the user changes the sort order by clicking on a column header (e.g., from "Date" to "Name"), the view does not follow the selected item. Instead, the focus stays on the column header and the view remains at the top of the list, forcing the user to manually scroll to find their selection.

Steps to reproduce

Open a folder in list view with many files/folders (enough to require scrolling).

Sort by "Modified" date.

Select a folder (e.g., a newly created/renamed one at the top).

Click on the "Name" column header to change the sorting to alphabetical.

Notice that the view stays at the top of the list, while the selected folder has moved elsewhere.

Pressing "Space" or arrow keys does not jump to the selected item because the focus is stuck on the column header button.

Expected behavior

Like in Windows File Explorer or other file managers, the view should automatically scroll to keep the selected item visible after a sort change. Additionally, the keyboard focus should return to the file list rather than staying on the column header.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions