Replies: 1 comment 3 replies
-
We might need more info on what is going on in the specific CSV where you are observing this. For various example CSVs I have, I see the first row correctly identified as the column names: ![]() |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team, and thanks for this great project — I’m currently exploring Positron and ran into something I wanted to clarify or suggest.
When I open a CSV file by clicking on it in the Files pane, the table preview shows generic column names like column01, column02, etc., and what appears to be the actual header row is treated as row 0 in the preview (see image attached).
Here’s what I observed:
• The CSV file is correctly formatted (i.e., the first line contains valid column headers).
• When I click “Open as Plain Text File”, I can confirm the header line is present and well-formed.
• Loading the file into R via read.csv("teamcolors.csv", header = TRUE) works fine — column names are assigned correctly.
So this behavior seems limited to the built-in viewer.
Would it be possible to add an option to treat the first row as a header when displaying CSVs in the preview pane?
Or perhaps auto-detect this based on common patterns (like a line of quoted strings)?
Here's my session info:
Thanks in advance, and great work again on Positron!
Beta Was this translation helpful? Give feedback.
All reactions