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

CSV preview #333

Closed
1 task
panday1995 opened this issue Nov 2, 2023 · 8 comments
Closed
1 task

CSV preview #333

panday1995 opened this issue Nov 2, 2023 · 8 comments
Labels
feature New feature request

Comments

@panday1995
Copy link

Is your feature request related to a problem? Please describe

I cannot know what is in a csv file from the tui

Will you be willing to contribute this feature?

  • Yes, I will try to implement it

Describe the solution you'd like

I want to have a preview of csv files, e.g., the first few rows of the csv file

Describe alternatives you've considered

No response

Additional context

No response

@panday1995 panday1995 added the feature New feature request label Nov 2, 2023
@sxyazi
Copy link
Owner

sxyazi commented Nov 3, 2023

What tools do you use to preview CSV files?

@uncenter
Copy link
Contributor

uncenter commented Nov 3, 2023

I don't use these but here are some popular CSV tools:

@panday1995
Copy link
Author

What tools do you use to preview CSV files?

I never used a terminal for csv preview actually. I used to use a VScode csv viewer extension. But would like to know if it is possible to have this feature. (https://github.com/mechatroner/vscode_rainbow_csv/tree/master)

@januz
Copy link

januz commented Dec 30, 2023

previews using csvlens would be fantastic

@sxyazi
Copy link
Owner

sxyazi commented Jan 28, 2024

Hi! Would you like to make it a previewer plugin?

Yazi allows you to create and use your own previewers and preloaders. You can start by copying the json.lua into your ~/.config/yazi/plugins/csv.yazi/init.lua, see the docs here https://yazi-rs.github.io/docs/plugins/overview#previewer

And if you're willing, I'll add your repo url to the Yazi documentation somewhere, maybe "community plugins".

@sxyazi sxyazi added the waiting on op Waiting for more information from the original poster label Jan 28, 2024
@Reledia
Copy link

Reledia commented Feb 1, 2024

I made miller a plugin previewer now: miller.yazi. I couldnt go with csvlens as it's a TUI that won't support full piping (the author stated so in their issues), so I think mlr is the way to go (even if I dont like the way they handle colors).

@sxyazi
Copy link
Owner

sxyazi commented Feb 3, 2024

Thank you! @Reledia

Let's close this issue then

@sxyazi sxyazi closed this as completed Feb 3, 2024
@sxyazi sxyazi removed the waiting on op Waiting for more information from the original poster label Feb 3, 2024
Copy link

github-actions bot commented Mar 5, 2024

I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

5 participants