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

Feature Request: Format CSV files #246

Open
gdevenyi opened this issue Sep 23, 2024 · 3 comments
Open

Feature Request: Format CSV files #246

gdevenyi opened this issue Sep 23, 2024 · 3 comments

Comments

@gdevenyi
Copy link

lesspipe offers formatting of CSV files, by breaking on comma and using the column command line program to provide easily readable output.

I would like to request moar provide similar formatting functionality.

Colouring the columns (rainbowcsv) is another way which would greatly improve readability of CSVs.

Thanks.

@walles
Copy link
Owner

walles commented Sep 23, 2024

I'm not so keen on neither formatting nor calling external tools, but highlighting I think should be there.

I filed a request at alecthomas/chroma#1004 since there seems not to be any CSV highlighter in the library I use.

@walles
Copy link
Owner

walles commented Sep 23, 2024

Setting to help-wanted since they say:

Please note that lexers are contributed by the community. Your best option is to contribute this yourself.

The fastest way to get working CSV highlighting might be to implement it for Chroma.

@walles
Copy link
Owner

walles commented Sep 29, 2024

Made a highlighting PR: alecthomas/chroma#1005

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants