1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-02-22 12:58:26 +00:00
Keith Hall 512bfde7ce Correctly handle CSV files with a single separator throughout
better auto-detection of CSV delimiter
- files with a tsv extension are automatically detected as tab delimited
- other files parsed as CSV go through the following steps:
  - if the first line contains at least 3 of the same separator, it uses that separator as a delimiter
  - if the first line contains only one supported separator character, it uses that separator as a delimiter
  - otherwise it falls back to treating all supported delimiters as the delimiter

 supported delimiters, in precedence order:
 - comma `,`
 - semi-colon `;`
 - tab `\t`
 - pipe `|`
2025-02-09 20:37:53 +02:00
..
2022-09-14 22:49:39 +02:00
2024-07-17 15:46:38 -04:00
2020-03-21 23:53:53 +01:00
2023-03-17 22:48:12 +02:00
2020-04-27 21:45:36 +02:00
2021-01-09 22:35:50 +01:00
2021-07-25 13:27:30 +02:00
2020-03-21 23:53:53 +01:00
2020-03-21 23:53:53 +01:00
2020-03-21 23:53:53 +01:00
2020-03-21 23:53:53 +01:00
2020-03-21 23:53:53 +01:00
2020-10-20 19:32:14 +02:00
2020-03-21 23:53:53 +01:00
2023-09-01 17:50:30 +02:00
2020-03-21 23:53:53 +01:00
2020-03-21 23:53:53 +01:00
2020-05-01 10:24:19 +02:00
2021-10-03 19:17:26 +02:00
2020-03-21 23:53:53 +01:00
2021-08-16 06:16:53 +02:00
2020-03-21 23:53:53 +01:00
2020-03-21 23:53:53 +01:00
2020-04-12 19:42:36 +02:00
2020-03-21 23:53:53 +01:00
2021-03-15 07:21:15 +01:00
2020-03-21 23:53:53 +01:00
2020-03-21 23:53:53 +01:00
2023-10-04 09:09:54 +02:00
2020-03-21 23:53:53 +01:00
2020-03-21 23:53:53 +01:00
2021-01-09 22:35:50 +01:00
2020-03-21 23:53:53 +01:00
2020-03-21 23:53:53 +01:00
2021-01-02 09:45:19 +01:00
2020-03-21 23:53:53 +01:00
2020-04-30 09:59:14 +02:00
2021-10-03 19:17:26 +02:00
2020-04-12 19:20:28 +02:00
2020-03-21 23:53:53 +01:00
2023-10-04 09:09:54 +02:00