Chonky icon indicating copy to clipboard operation
Chonky copied to clipboard

Display custom file properties

Open yacinebenkaidali opened this issue 5 years ago • 12 comments

How to display user defined property instead of modDate or size?

yacinebenkaidali avatar Oct 04 '20 14:10 yacinebenkaidali

Hi, at the moment this is not a supported feature.

I think the best solution for you right now is to fork Chonky and customise it as necessary.

Can you give me some more details about your use case? What properties do you want to display instead?

TimboKZ avatar Oct 06 '20 09:10 TimboKZ

I'd really love to see the same. My use case is that we are using a custom asset management (so not a real file based one, with files on disk), with many properties (status (public, draft, etc.), description, tags, etc.).

In my case, when listing file in their list view, I'd like to be able to add/hide columns to show these details.

rogiervandenberg avatar Nov 09 '20 13:11 rogiervandenberg

Hi @rogiervandenberg, your use case is very common, so I'm very keen to add support for it.

That said, I still haven't pinned down the best way to implement this. The obvious solution is to let users provide, say, an array of custom FileData keys they want to display, and then just loop through that in Chonky. The problem here is that Chonky doesn't actually use a real <table> under the hood (because of virtualisation concerns), so it will be hard to get accurate column widths. This will also not work if users want to render some React components inside the table cells.

A more future-proof solution is to let users define their own ListFileEntry/GridFileEntry components, but right now the internal implementation of these components is far too complicated to expect users to reproduce it. I need to make it more modular before people start reusing it.

With the above in mind, I think at this point in time the best solution for your problem is to fork Chonky and customise it as necessary. If you end up doing this and come up with something interesting, please let me know!

TimboKZ avatar Nov 09 '20 20:11 TimboKZ

I want to nudge for this request. I'd like to be able to show linux file permissions -rw-rw-rw etc. Currently just adding it to the beginning of the file name, but it looks odd in icon mode, ideally it would be only shown in detail view and in its own column.

RickeyWard avatar Mar 07 '21 05:03 RickeyWard

I have the same usecase as @rogiervandenberg

Ionut-Milas avatar Mar 10 '21 07:03 Ionut-Milas

Is there any movement on this? Our use case is very similar to above - wanting to show some extra metadata (name of the author etc)

adam-qualio avatar Jun 09 '21 17:06 adam-qualio

I too want to display the user who have created the file. Can anyone please help me

rajancherma avatar Mar 30 '22 13:03 rajancherma

Agree with this issue. Adding custom data columns to list entries would be a really welcome feature.

VsKatshuma avatar Apr 29 '22 10:04 VsKatshuma

Is this resolved yet. I also want to show a field "uploaded by". Please let me know if this is gonna be implemented in future.

I have same issue with @RickeyWard. And plus that, the date column is too narrow to display full datetime.

zhyang-liu avatar Mar 01 '23 05:03 zhyang-liu