[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Leafpad 0.8.17 and CSV files format



Leafpad 0.8.17

Just want to mention, that it would be pretty easy for Leafpad to support CSV files as they are just plain text files, which must be aligned in columns.

This would made Leafpad a light csv viewer.

Algorithm could be.
1/ Parse first line to count number of columns and define each column width.
2/ Parse all subsequent lines to find the max width for each columns.
3/ Display the columns with the appropriate width.

Example
col1;col2;col3
1234;a;airoro
12345;abcdefg;jfd

Would results into(hope file format is kept in emailing)
col1  ;col2   ;col3
1234 ;a      ;airoro
12345;abcdefg;jfd


Thanks for Leafpad.

Reply to: