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 errors, especially when scrolling #96

Open
jszym opened this issue Jul 27, 2024 · 3 comments
Open

Display errors, especially when scrolling #96

jszym opened this issue Jul 27, 2024 · 3 comments

Comments

@jszym
Copy link

jszym commented Jul 27, 2024

Hi,

Very cool project!

I'm experiencing some very bizarre errors in how a table is displayed. This (256mb) is the tab-delimited file in question (I decompressed it with gunzip before feeding to csvlens).

When I execute csvlens -d \t variant_summary.txt, this is what I see (on both kitty and GNOME terminal):

image

After pressing the down arrow 12 times, this is what it looks like:

image

And finally pressing the right arrow 3 times:

image

So, as you can see, there are a number of display issues here. Columns and rows aren't lining up properly, and the problem is exacerbated by scrolling.

Any ideas what is causing this?

@YS-L
Copy link
Owner

YS-L commented Jul 28, 2024

Hi! The correct way of specifying tab as the delimiter is:

csvlens -d '\t' variant_summary.txt

(note the quotes around \t).

There is also a shortcut for tab delimited files:

csvlens -t variant_summary.txt

I tested that -d auto works as well for this file.

Though I agree that the rendering on incorrect delimiter shouldn't be this strange. I will have to look into it further to understand why.

@jszym
Copy link
Author

jszym commented Jul 28, 2024

Thanks!

@YS-L
Copy link
Owner

YS-L commented Jul 29, 2024

That said, this seems like a common enough occurrence that is worth supporting. In the next release, csvlens -d \t ... should just work as you expected.

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