nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.37k stars 4.07k forks source link

Display file extensions and/or File type badges or overlays in gridview #19538

Open acloudadmin opened 4 years ago

acloudadmin commented 4 years ago

Hi there,

First, I'd like to thank everybody for their hard work on Nextcloud. It works and looks great.

I have a lot of files with long and very similar names and am looking for ways to tell them apart when in grid view.

I think there are two basic ways to approach this:

The first is to use the technique currently used in the list view, where the beginning and the end of the file name are both displayed and the middle part of the file name is replaced with "...". I think that implementing this, along with allowing me to make the space for two lines of filename in grid view would be incredibly helpful.

The second approach, which isn't necessarily exclusive to the first, is to implement some sort of filetype badge or overlay on the gridview thumbnails. Little circles or squares with "jpg" or "dng" or "xlxs" or "csv" would be incredibly helpful.

Thanks!

FadeFx commented 3 years ago

i also recognized that some kind of filetype badge would be helpfull, i have several files that exist as pdf and as docx, with collabora i see both as a preview in gridview and now can not distinguish which is pdf and which is editable

szaimen commented 3 years ago

I'd vote for an overlay when pointing at a folder with the mouse. cc @nextcloud/designers

FadeFx commented 3 years ago

I'd vote for an overlay when pointing at a folder with the mouse. cc @nextcloud/designers

What do you want to see on the folders? This is aboutthe files themselfs. most filetypes have previews instead of an icon, this means you can not say whatfiletypeit actually is. For folders it could only display a filetype batch if there is only one filetype inside. Probably we could have configurable batches for folders, but that is something completely different...

nimishavijay commented 3 years ago

I'd say that grid view is generally used when there is more visual content, like pictures. It does make sense to show the file types as well in grid view. Right now, the area filename doesn't have much space to include the filetype as well, so badges in the corner would work (but it might lead to the UI being a bit messy). If the filename is being ellipsised because it's too long it's also a great idea to show the full filename+filetype (like sampleDocument.docx) in a tooltip when hovering over the file.