Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display custom file properties #31

Open
yacinebenkaidali opened this issue Oct 4, 2020 · 10 comments
Open

Display custom file properties #31

yacinebenkaidali opened this issue Oct 4, 2020 · 10 comments
Labels
enhancement New feature or request

Comments

@yacinebenkaidali
Copy link

yacinebenkaidali commented Oct 4, 2020

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

@TimboKZ
Copy link
Owner

TimboKZ commented Oct 6, 2020

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 TimboKZ added the enhancement New feature or request label Oct 6, 2020
@TimboKZ TimboKZ changed the title Change the default display Display custom file properties Oct 6, 2020
@rogiervandenberg
Copy link

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.

@TimboKZ
Copy link
Owner

TimboKZ commented Nov 9, 2020

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!

@RickeyWard
Copy link

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.

@Ionut-Milas
Copy link

I have the same usecase as @rogiervandenberg

@adam-qualio
Copy link

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)

@rajancherma
Copy link

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

@VsKatshuma
Copy link

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

@nikhilchauhankrantitechservices

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.

@zhyang-liu
Copy link

zhyang-liu commented Mar 1, 2023

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

samuelncui pushed a commit to samuelncui/Chonky that referenced this issue Oct 4, 2023
…imboKZ#31)

Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 13.4.0 to 14.0.0.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](testing-library/react-testing-library@v13.4.0...v14.0.0)

---
updated-dependencies:
- dependency-name: "@testing-library/react"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

10 participants