[GtkTreeView] When no files are selected in a folder with multiple files, the 'Home' key does not highlight the top-listed file like it does in "compact view" and "icon view" in various folder viewers (Caja, Nautilus, Nemo, Thunar, etc)
(tested with basically every combination of Nemo, Thunar, Cinnamon, Xfce, live session, local OS installations, etc that you can think of on Linux Mint 21 beta, but I also confirmed that this occurs even on a live session of Manjaro 21.3.5 Xfce; the Xfce devs state that this should be fixed directly in Gtk ideally: https://gitlab.xfce.org/xfce/thunar/-/issues/844#note_52733)
2022-08-07 UPDATE: I can also confirm that this issue also occurs in Nautilus v42.0 tested on a live session of Fedora Workstation 36.
Describe the issue
If you have your folder view set to "List View" and you view a folder that has multiple files and no files are highlighted, pressing the "Home" key does not highlight the top-listed file.
To Reproduce
- make sure Caja/Nautilus/Nemo/Thunar's folder view is set to "List View" and that it's also using that by default
- in Caja/Nautilus/Nemo/Thunar, navigate to a folder with multiple files, such as
/etc/
- press the "Home" key on your keyboard
- observe how no files become highlighted
- press the back button in Caja/Nautilus/Nemo/Thunar
- go into the
/etc/
folder again - make sure that Caja/Nautilus/Nemo/Thunar is still in "list view"
- press the "End" key on your keyboard
- observe how it does highlight the last file that is listed
- change Caja/Nautilus/Nemo/Thunar to "compact view"
- press the back button in Caja/Nautilus/Nemo/Thunar
- go into the
/etc/
again - make sure that Caja/Nautilus/Nemo/Thunar is still set to "compact view"
- press the "Home" key on your keyboard
- observe how the first-listed file is now highlighted
- press the back button in Caja/Nautilus/Nemo/Thunar
- go into the
/etc/
folder again - make sure that Caja/Nautilus/Nemo/Thunar is still in "compact view"
- press the "End" key on your keyboard
- observe how the last-listed file is now highlighted
- change Caja/Nautilus/Nemo/Thunar to "icon view"
- press the back button in Caja/Nautilus/Nemo/Thunar
- go into the
/etc/
again - make sure that Caja/Nautilus/Nemo/Thunar is still set to "icon view"
- press the "Home" key on your keyboard
- observe how the first-listed file is now highlighted
- press the back button in Caja/Nautilus/Nemo/Thunar
- go into the
/etc/
folder again - make sure that Caja/Nautilus/Nemo/Thunar is still in "compact view"
- press the "End" key on your keyboard
- observe how the last-list file is now highlighted
Current behavior
Pressing the "Home" key simply does nothing if no file is highlighted in a folder with files set to "List View".
Expected behavior
Simply put, I would think that it would make sense that pressing the "Home" key on your keyboard would highlight the first-listed file when using "list view".
##Other information Pressing the "Home" key highlights the first-listed file in both "compact view" and "icon view"; additionally, the "End" key (which effectively does the opposite function) highlights the last-listed file in not just "compact view" and "icon view" but even in "list view".
Also note that, even in "list view" the 'Home' key does in fact currently highlight the first-listed file if there's a file that's already highlighted (e.g. if you press the 'End' key and then subsequently press the 'Home' key).