mate-desktop / caja

Caja, the file manager for the MATE desktop
https://mate-desktop.org/
Other
264 stars 145 forks source link

[Enhancement] List view - when no files are selected in a folder with multiple files, have the 'Home' key highlight the top-listed file like it does in "compact view" and "icon view" #1652

Open NintendoManiac64 opened 2 years ago

NintendoManiac64 commented 2 years ago

This is basically a direct copy & paste of the same thing originally posted for Nemo (albeit with the name "Nemo" changed to "Caja"):

(all testing was performed with Caja v1.26.0)

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 Steps to reproduce the behavior:

  1. make sure Caja's folder view is set to "List View" and that it's also using that by default
  2. in Caja, navigate to a folder with multiple files, such as /etc/
  3. press the "Home" key on your keyboard
  4. observe how no files become highlighted
  5. press the back button in Caja
  6. go into the /etc/ folder again
  7. make sure that Caja is still in "list view"
  8. press the "End" key on your keyboard
  9. observe how it does highlight the last file that is listed
  10. change Caja to "compact view"
  11. press the back button in Caja
  12. go into the /etc/ again
  13. make sure that Caja is still set to "compact view"
  14. press the "Home" key on your keyboard
  15. observe how the first-listed file is now highlighted
  16. press the back button in Caja
  17. go into the /etc/ folder again
  18. make sure that Caja is still in "compact view"
  19. press the "End" key on your keyboard
  20. observe how the last-listed file is now highlighted
  21. change Caja to "icon view"
  22. press the back button in Caja
  23. go into the /etc/ again
  24. make sure that Caja is still set to "icon view"
  25. press the "Home" key on your keyboard
  26. observe how the first-listed file is now highlighted
  27. press the back button in Caja
  28. go into the /etc/ folder again
  29. make sure that Caja is still in "compact view"
  30. press the "End" key on your keyboard
  31. observe how the last-list file is now highlighted

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).

lukefromdc commented 1 year ago

I found that with caja 1.27 on Debian Unstable, the home key (which I've never used intentionally before) would select the first item in list and compact view, highlight it with the outline only in list view. If any file had been previously selected, the home key would then select the first file in list view. With no file already selected, "home"followed by the up arrow or down arrow key would select the first item