Skip to content

Bug: Home key doesn't move to the 1st character when renaming item in List View layout #15048

Closed
@andrew-james-heard

Description

@andrew-james-heard

Description

When renaming a file with a long name in Windows Explorer, the whole name is displayed, whereas Files only displays part of the name. In Files, when the name is in edit mode (F2) the Home & End keys only move to the start & end of the visual/ displayed text rather than the 1st or last character. This issue seems to stem from Files difference in how it displays long file names; generally they are shown in a truncated form whereas Explorer generally shows the whole name.

Steps To Reproduce

  1. say clipboard contains "this is a long file name, this is a long file name" but the layout is List, showing 28 characters.
  2. move focus to any file
  3. press F2 to rename the file
  4. press ctrl+V to paste the new long filename
  5. observe only a truncated part of the new long filename is displayed, and pressing Home only moves the cursor to the 1st displayed character rather than (as with Explorer) the 1st actual character

Requirements

Not quite sure, but its currently confusing. Initially I thought a truncated name was being pasted, but you can use the cursor-left key to see all the other characters are actually pasted, just not displayed.

Files Version

3.3

Windows Version

11 23H2

Log File

this should be optional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood issue for new contributors to get started with

    Type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions