r/SublimeText • u/tftb • 14d ago
Is there a way to view (markdown/csv) tabular data in a nice manner in-editor?
I mainly use sublime for text editing, and going through data files, so mainly .md, .csv and .tsv. It would greatly speed up my workflow if I could make sublime show tables "nicely" by default, so like this:
| Name | Phone |
|-----------|-----------|
| Anna | 123456789 |
| Alexander | 987654321 |
| _ | |I would like for all the recognized tables in any file to show like above, instead of having to select the tabular data and running a command. Usually a table is entered in markdown like this:
| Syntax | Description |
| --- | ----------- |
| Header | Title |
| Paragraph | Text |which is hard to read. Is there a way?
11
Upvotes
2
u/ifrederico 14d ago
Give this package a try. You can view markdown format as you edit. LiveServerPlus
3
u/Khoa_dot 14d ago
I use the package TableEditor, for markdown tables, that does the job in most cases: https://packagecontrol.io/packages/Table%20Editor
It's not as good as what you asked for (because it edits the buffer to get the nice alignment, it's not just a render) but maybe give it a try!
1
u/ipearx 14d ago
Not a sublime tool, but the clickhouse database is amazing for reading CSV files (or any other data format) and querying it like SQL, and formatting how you want. You can run it locally. e.g.
1
u/me_myself_ai 14d ago
Yup any of the markdown formatters will auto format those :) check out Formatter for the mainstream one and enable mdformat on save