How do I visualize nicely a CSV file in *macs?
January 31, 2012 in Emacs and friends, Recipes
Once you load the CSV file enter the org-mode: M-x org-mode. Then select the entire data and create a table: C-u C-c |.
January 31, 2012 in Emacs and friends, Recipes
Once you load the CSV file enter the org-mode: M-x org-mode. Then select the entire data and create a table: C-u C-c |.
No, I would like to go back to the original CSV-formatted content. Kind of pretending that the org-mode formatted table was just a “view”, not an actual change in content.
Maybe a simple undo is your friend in this case…
Well, I would like to edit the data in the nice table layout, so undo can’t work…
That’s neat! (I had to use M-x org-table-convert-region – for some reason C-u C-c | gave me “org-split-string: Wrong type argument: stringp, (4)”)
How do you turn it back into csv?
I presume that you want to go back in text mode. If this is the case just
M-x text-mode. Otherwise whatever mode you were in before switching toorg-mode. Note that the CSV content will remain formatted as in theorg-mode.Nice! It doesn’t seem to handle multi-line cells, though.
This is an interesting point. I could not find in the documentation of
org-modeanything that seems to address your issue. On the other hand there is a way to limit the size of the cells. From the documentation: