cosmic-files
cosmic-files copied to clipboard
Feature: add file previews
File preview should open simultaneously with selecting folder or file by clicking on it.
Figma mockups.
Maybe also details specific to the file type (e.g. video length, image size) under the preview, kinda like Dolphin (KDE)?
I've seen a (harsh) complaint about the file preview overlapping the content view which makes navigating through files with the keyboard difficult in this video: https://youtu.be/KP3dOUJgng0&t=136 Timestamp is included in the link. This probably only affects the grid view.
One easy fix for this I can think of is to shrink the content view when the file preview is opened so the two layers don't overlap. This would increase the amount of scrolling required to reach the bottom of the content view, but that's probably more acceptable than not being able to see what files are being selected.
One easy fix for this I can think of is to shrink the content view when the file preview is opened so the two layers don't overlap.
It's worth mentioning that if that's the fix system76 is going after, the grid view will change considerable with previews. If you open and close the preview, it will do quite a dance for the user to see.
The designs for File previews have been updated. The layout should follow the pattern where ContextDrawer opens next to the content area making the content re-flow. The behavior and responsiveness is described here in the Design System.
Small video demonstrating how the app should shrink.
https://github.com/user-attachments/assets/9654bd93-f146-405e-9e7b-977effeb0220
Another video shows the interaction with the file preview when the content area is at its minimum width.
https://github.com/user-attachments/assets/8bb52681-d243-4d21-a3a3-2b0e30366231
List of items to resolve:
- [x] Allow context drawer to optionally be placed on the same layer as content
- [x] Change breakpoint when context drawer is open and on the same layer
- [x] When grid view is resized, scroll as needed so selected item remains in view
- [x] Add timer after clicking an item to show a preview if double click expires