Skip to content

Commit f475448

Browse files
committed
v0.29.0
1 parent 165bfd1 commit f475448

File tree

6 files changed

+145
-66
lines changed

6 files changed

+145
-66
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
- `csvtk concat`:
99
- fix panic when no data found.
1010
- `csvtk sort`:
11-
- support column name containing colons. [#254](https://github.com/shenwei356/csvtk/issues/254)
11+
- support column names containing colons. [#254](https://github.com/shenwei356/csvtk/issues/254)
1212
- `csvtk filter2`:
1313
- update doc: add the `in` keyword. [#195](https://github.com/shenwei356/csvtk/pull/195)
1414
- fix specifying the position for the new column containing only a constant string. [#252](https://github.com/shenwei356/csvtk/issues/252)
1515
- `csvtk plot`:
1616
- add a new flag `--tick-label-size`.
1717
- `csvtk pretty`:
18-
- replace tabs with spaces.
18+
- fix showing cell data containing "tabs", by replacing tabs with spaces.
1919
- [csvtk v0.28.0](https://github.com/shenwei356/csvtk/releases/tag/v0.28.0)
2020
[![Github Releases (by Release)](https://img.shields.io/github/downloads/shenwei356/csvtk/v0.28.0/total.svg)](https://github.com/shenwei356/csvtk/releases/tag/v0.28.0)
2121
- `csvtk`:

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ It could save you lots of time in (not) writing Python/R scripts.
8181
- [`pretty`](https://bioinf.shenwei.me/csvtk/usage/#pretty): converts CSV to a readable aligned table
8282
- [`csv2tab`](https://bioinf.shenwei.me/csvtk/usage/#csv2tab): converts CSV to tabular format
8383
- [`tab2csv`](https://bioinf.shenwei.me/csvtk/usage/#tab2csv): converts tabular format to CSV
84-
- [`space2tab`](https://bioinf.shenwei.me/csvtk/usage/#space2tab): converts space delimited format to TSVW
84+
- [`space2tab`](https://bioinf.shenwei.me/csvtk/usage/#space2tab): converts space delimited format to TSV
8585
- [`transpose`](https://bioinf.shenwei.me/csvtk/usage/#transpose): transposes CSV data
8686
- [`csv2md`](https://bioinf.shenwei.me/csvtk/usage/#csv2md): converts CSV to markdown format
8787
- [`csv2rst`](https://bioinf.shenwei.me/csvtk/usage/#csv2rst): converts CSV to reStructuredText format
@@ -120,8 +120,8 @@ It could save you lots of time in (not) writing Python/R scripts.
120120
- [`mutate`](https://bioinf.shenwei.me/csvtk/usage/#mutate): creates new columns from selected fields by regular expression
121121
- [`mutate2`](https://bioinf.shenwei.me/csvtk/usage/#mutate2): creates a new column from selected fields by awk-like arithmetic/string expressions
122122
- [`sep`](https://bioinf.shenwei.me/csvtk/usage/#sep): separate column into multiple columns
123-
- [`gather`](https://bioinf.shenwei.me/csvtk/usage/#gather): gather columns into key-value pairs, like tidyr::gather/pivot_longer
124-
- [`spread`](https://bioinf.shenwei.me/csvtk/usage/spread): spread a key-value pair across multiple columns, like tidyr::spread/pivot_wider
123+
- [`gather`](https://bioinf.shenwei.me/csvtk/usage/#gather): gather columns into key-value pairs, like `tidyr::gather/pivot_longer`
124+
- [`spread`](https://bioinf.shenwei.me/csvtk/usage/spread): spread a key-value pair across multiple columns, like `tidyr::spread/pivot_wider`
125125
- [`unfold`](https://bioinf.shenwei.me/csvtk/usage/#unfold): unfold multiple values in cells of a field
126126
- [`fold`](https://bioinf.shenwei.me/csvtk/usage/#fold): fold multiple values of a field into cells of groups
127127
- [`fmtdate`](https://bioinf.shenwei.me/csvtk/usage/#fmtdate): format date of selected fields
@@ -214,7 +214,7 @@ fish:
214214

215215
## Compared to `csvkit`
216216

217-
[csvkit](http://csvkit.readthedocs.org/), attention: this table wasn't updated for 2 years.
217+
[csvkit](http://csvkit.readthedocs.org/), attention: this table wasn't updated for many years.
218218

219219
Features | csvtk | csvkit | Note
220220
:-----------------------|:--------:|:---------:|:---------

csvtk/cmd/fmtdate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"time"
2828

2929
"github.com/araddon/dateparse"
30-
"github.com/metakeule/fmtdate"
30+
"gitlab.com/metakeule/fmtdate"
3131
"github.com/shenwei356/xopen"
3232
"github.com/spf13/cobra"
3333
)

doc/docs/download.md

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,36 @@
66

77
## Current Version
88

9-
- [csvtk v0.28.0](https://github.com/shenwei356/csvtk/releases/tag/v0.28.0)
10-
[![Github Releases (by Release)](https://img.shields.io/github/downloads/shenwei356/csvtk/v0.28.0/total.svg)](https://github.com/shenwei356/csvtk/releases/tag/v0.28.0)
11-
- `csvtk`:
12-
- add the shortcut `-X` for the flag `--infile-list`. [#249](https://github.com/shenwei356/csvtk/issues/249)
9+
- [csvtk v0.29.0](https://github.com/shenwei356/csvtk/releases/tag/v0.29.0)
10+
[![Github Releases (by Release)](https://img.shields.io/github/downloads/shenwei356/csvtk/v0.29.0/total.svg)](https://github.com/shenwei356/csvtk/releases/tag/v0.29.0)
11+
- new commands:
12+
- [`fix-quotes`](https://bioinf.shenwei.me/csvtk/usage/#fix-quotes): fix malformed CSV/TSV caused by double-quotes. [#260](https://github.com/shenwei356/csvtk/issues/260)
13+
- [`del-quotes`](https://bioinf.shenwei.me/csvtk/usage/#del-quotes): remove extra double-quotes added by `fix-quotes`.
14+
- `csvtk del-header`:
15+
- fix deleting headers of 2nd and later files. [#257](https://github.com/shenwei356/csvtk/issues/257)
16+
- `csvtk concat`:
17+
- fix panic when no data found.
18+
- `csvtk sort`:
19+
- support column names containing colons. [#254](https://github.com/shenwei356/csvtk/issues/254)
20+
- `csvtk filter2`:
21+
- update doc: add the `in` keyword. [#195](https://github.com/shenwei356/csvtk/pull/195)
22+
- fix specifying the position for the new column containing only a constant string. [#252](https://github.com/shenwei356/csvtk/issues/252)
23+
- `csvtk plot`:
24+
- add a new flag `--tick-label-size`.
1325
- `csvtk pretty`:
14-
- support field ranges for `-m/--align-center` and `-r/--align-right`. [#244](https://github.com/shenwei356/csvtk/issues/244)
15-
- `csvtk spread`:
16-
- support values sharing the same keys. [#248](https://github.com/shenwei356/csvtk/issues/248)
17-
- `csvtk join`:
18-
- a new flag `-P/--prefix-duplicates`: add filenames as colname prefixes only for duplicated colnames. [#246](https://github.com/shenwei356/csvtk/issues/246)
19-
- `csvtk mutate2`:
20-
- fix changing the order of the header row, the code was accidentally missing during code refactoring in v0.27.0. [#252](https://github.com/shenwei356/csvtk/issues/252)
21-
- `csvtk xlsx2csv`:
22-
- fix `open /tmp/excelize-: no such file or directory` error for big `.xlsx` files. [#251](https://github.com/shenwei356/csvtk/issues/251)
23-
- `csvtk comb`:
24-
- fix the empty result bug for alphabet sizes greater than 64.
26+
- fix showing cell data containing "tabs", by replacing tabs with spaces.
2527

2628
### Links
2729

2830
OS |Arch |File, 中国镜像 |Download Count
2931
:------|:---------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
30-
Linux |32-bit |[csvtk_linux_386.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.28.0/csvtk_linux_386.tar.gz),<br/> [中国镜像](http://app.shenwei.me/data/csvtk/csvtk_linux_386.tar.gz) |[![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_386.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.28.0/csvtk_linux_386.tar.gz)
31-
Linux |**64-bit**|[**csvtk_linux_amd64.tar.gz**](https://github.com/shenwei356/csvtk/releases/download/v0.28.0/csvtk_linux_amd64.tar.gz),<br/> [中国镜像](http://app.shenwei.me/data/csvtk/csvtk_linux_amd64.tar.gz) |[![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_amd64.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.28.0/csvtk_linux_amd64.tar.gz)
32-
Linux |**64-bit**|[**csvtk_linux_arm64.tar.gz**](https://github.com/shenwei356/csvtk/releases/download/v0.28.0/csvtk_linux_arm64.tar.gz),<br/> [中国镜像](http://app.shenwei.me/data/csvtk/csvtk_linux_arm64.tar.gz) |[![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_arm64.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.28.0/csvtk_linux_arm64.tar.gz)
33-
macOS |**64-bit**|[**csvtk_darwin_amd64.tar.gz**](https://github.com/shenwei356/csvtk/releases/download/v0.28.0/csvtk_darwin_amd64.tar.gz),<br/> [中国镜像](http://app.shenwei.me/data/csvtk/csvtk_darwin_amd64.tar.gz) |[![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_darwin_amd64.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.28.0/csvtk_darwin_amd64.tar.gz)
34-
macOS |**arm64** |[**csvtk_darwin_arm64.tar.gz**](https://github.com/shenwei356/csvtk/releases/download/v0.28.0/csvtk_darwin_arm64.tar.gz),<br/> [中国镜像](http://app.shenwei.me/data/csvtk/csvtk_darwin_arm64.tar.gz) |[![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_darwin_arm64.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.28.0/csvtk_darwin_arm64.tar.gz)
35-
Windows|32-bit |[csvtk_windows_386.exe.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.28.0/csvtk_windows_386.exe.tar.gz),<br/> [中国镜像](http://app.shenwei.me/data/csvtk/csvtk_windows_386.exe.tar.gz) |[![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_windows_386.exe.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.28.0/csvtk_windows_386.exe.tar.gz)
36-
Windows|**64-bit**|[**csvtk_windows_amd64.exe.tar.gz**](https://github.com/shenwei356/csvtk/releases/download/v0.28.0/csvtk_windows_amd64.exe.tar.gz),<br/> [中国镜像](http://app.shenwei.me/data/csvtk/csvtk_windows_amd64.exe.tar.gz)|[![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_windows_amd64.exe.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.28.0/csvtk_windows_amd64.exe.tar.gz)
32+
Linux |32-bit |[csvtk_linux_386.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.29.0/csvtk_linux_386.tar.gz),<br/> [中国镜像](http://app.shenwei.me/data/csvtk/csvtk_linux_386.tar.gz) |[![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_386.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.29.0/csvtk_linux_386.tar.gz)
33+
Linux |**64-bit**|[**csvtk_linux_amd64.tar.gz**](https://github.com/shenwei356/csvtk/releases/download/v0.29.0/csvtk_linux_amd64.tar.gz),<br/> [中国镜像](http://app.shenwei.me/data/csvtk/csvtk_linux_amd64.tar.gz) |[![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_amd64.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.29.0/csvtk_linux_amd64.tar.gz)
34+
Linux |**64-bit**|[**csvtk_linux_arm64.tar.gz**](https://github.com/shenwei356/csvtk/releases/download/v0.29.0/csvtk_linux_arm64.tar.gz),<br/> [中国镜像](http://app.shenwei.me/data/csvtk/csvtk_linux_arm64.tar.gz) |[![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_arm64.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.29.0/csvtk_linux_arm64.tar.gz)
35+
macOS |**64-bit**|[**csvtk_darwin_amd64.tar.gz**](https://github.com/shenwei356/csvtk/releases/download/v0.29.0/csvtk_darwin_amd64.tar.gz),<br/> [中国镜像](http://app.shenwei.me/data/csvtk/csvtk_darwin_amd64.tar.gz) |[![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_darwin_amd64.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.29.0/csvtk_darwin_amd64.tar.gz)
36+
macOS |**arm64** |[**csvtk_darwin_arm64.tar.gz**](https://github.com/shenwei356/csvtk/releases/download/v0.29.0/csvtk_darwin_arm64.tar.gz),<br/> [中国镜像](http://app.shenwei.me/data/csvtk/csvtk_darwin_arm64.tar.gz) |[![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_darwin_arm64.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.29.0/csvtk_darwin_arm64.tar.gz)
37+
Windows|32-bit |[csvtk_windows_386.exe.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.29.0/csvtk_windows_386.exe.tar.gz),<br/> [中国镜像](http://app.shenwei.me/data/csvtk/csvtk_windows_386.exe.tar.gz) |[![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_windows_386.exe.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.29.0/csvtk_windows_386.exe.tar.gz)
38+
Windows|**64-bit**|[**csvtk_windows_amd64.exe.tar.gz**](https://github.com/shenwei356/csvtk/releases/download/v0.29.0/csvtk_windows_amd64.exe.tar.gz),<br/> [中国镜像](http://app.shenwei.me/data/csvtk/csvtk_windows_amd64.exe.tar.gz)|[![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_windows_amd64.exe.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.29.0/csvtk_windows_amd64.exe.tar.gz)
3739

3840
**Notes**
3941

@@ -148,6 +150,22 @@ fish:
148150

149151
## Release history
150152

153+
- [csvtk v0.28.0](https://github.com/shenwei356/csvtk/releases/tag/v0.28.0)
154+
[![Github Releases (by Release)](https://img.shields.io/github/downloads/shenwei356/csvtk/v0.28.0/total.svg)](https://github.com/shenwei356/csvtk/releases/tag/v0.28.0)
155+
- `csvtk`:
156+
- add the shortcut `-X` for the flag `--infile-list`. [#249](https://github.com/shenwei356/csvtk/issues/249)
157+
- `csvtk pretty`:
158+
- support field ranges for `-m/--align-center` and `-r/--align-right`. [#244](https://github.com/shenwei356/csvtk/issues/244)
159+
- `csvtk spread`:
160+
- support values sharing the same keys. [#248](https://github.com/shenwei356/csvtk/issues/248)
161+
- `csvtk join`:
162+
- a new flag `-P/--prefix-duplicates`: add filenames as colname prefixes only for duplicated colnames. [#246](https://github.com/shenwei356/csvtk/issues/246)
163+
- `csvtk mutate2`:
164+
- fix changing the order of the header row, the code was accidentally missing during code refactoring in v0.27.0. [#252](https://github.com/shenwei356/csvtk/issues/252)
165+
- `csvtk xlsx2csv`:
166+
- fix `open /tmp/excelize-: no such file or directory` error for big `.xlsx` files. [#251](https://github.com/shenwei356/csvtk/issues/251)
167+
- `csvtk comb`:
168+
- fix the empty result bug for alphabet sizes greater than 64.
151169
- [csvtk v0.27.2](https://github.com/shenwei356/csvtk/releases/tag/v0.27.2)
152170
[![Github Releases (by Release)](https://img.shields.io/github/downloads/shenwei356/csvtk/v0.27.2/total.svg)](https://github.com/shenwei356/csvtk/releases/tag/v0.27.2)
153171
- `csvtk pretty`:

go.mod

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ require (
1010
github.com/fatih/color v1.13.0
1111
github.com/mattn/go-colorable v0.1.13
1212
github.com/mattn/go-runewidth v0.0.14
13-
github.com/metakeule/fmtdate v1.1.2
1413
github.com/mitchellh/go-homedir v1.1.0
1514
github.com/pkg/errors v0.9.1
1615
github.com/shenwei356/breader v0.3.2
@@ -22,41 +21,44 @@ require (
2221
github.com/spf13/cobra v1.7.0
2322
github.com/tatsushid/go-prettytable v0.0.0-20141013043238-ed2d14c29939
2423
github.com/twotwotwo/sorts v0.0.0-20160814051341-bf5c1f2b8553
25-
github.com/xuri/excelize/v2 v2.7.1
26-
gonum.org/v1/gonum v0.12.0
27-
gonum.org/v1/plot v0.12.0
24+
github.com/xuri/excelize/v2 v2.8.0
25+
gitlab.com/metakeule/fmtdate v1.2.2
26+
gonum.org/v1/gonum v0.14.0
27+
gonum.org/v1/plot v0.14.0
2828
)
2929

3030
require (
31-
git.sr.ht/~sbinet/gg v0.3.1 // indirect
31+
git.sr.ht/~sbinet/gg v0.5.0 // indirect
3232
github.com/VividCortex/ewma v1.2.0 // indirect
3333
github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b // indirect
34+
github.com/campoy/embedmd v1.0.0 // indirect
3435
github.com/dsnet/compress v0.0.1 // indirect
3536
github.com/dustin/go-humanize v1.0.1 // indirect
36-
github.com/go-fonts/liberation v0.3.0 // indirect
37+
github.com/go-fonts/liberation v0.3.1 // indirect
3738
github.com/go-latex/latex v0.0.0-20230307184459-12ec69307ad9 // indirect
38-
github.com/go-pdf/fpdf v0.6.0 // indirect
39+
github.com/go-pdf/fpdf v0.8.0 // indirect
3940
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
4041
github.com/inconshreveable/mousetrap v1.1.0 // indirect
4142
github.com/klauspost/compress v1.15.12 // indirect
4243
github.com/klauspost/pgzip v1.2.6 // indirect
4344
github.com/kr/text v0.2.0 // indirect
4445
github.com/mattn/go-isatty v0.0.16 // indirect
4546
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
47+
github.com/pmezard/go-difflib v1.0.0 // indirect
4648
github.com/richardlehane/mscfb v1.0.4 // indirect
4749
github.com/richardlehane/msoleps v1.0.3 // indirect
4850
github.com/rivo/uniseg v0.4.2 // indirect
4951
github.com/rogpeppe/go-internal v1.9.0 // indirect
5052
github.com/spf13/pflag v1.0.5 // indirect
5153
github.com/ulikunitz/xz v0.5.10 // indirect
52-
github.com/xuri/efp v0.0.0-20220603152613-6918739fd470 // indirect
53-
github.com/xuri/nfp v0.0.0-20220409054826-5e722a1d9e22 // indirect
54-
golang.org/x/crypto v0.8.0 // indirect
55-
golang.org/x/image v0.6.0 // indirect
56-
golang.org/x/net v0.9.0 // indirect
57-
golang.org/x/sys v0.7.0 // indirect
58-
golang.org/x/term v0.7.0 // indirect
59-
golang.org/x/text v0.9.0 // indirect
54+
github.com/xuri/efp v0.0.0-20230802181842-ad255f2331ca // indirect
55+
github.com/xuri/nfp v0.0.0-20230819163627-dc951e3ffe1a // indirect
56+
golang.org/x/crypto v0.12.0 // indirect
57+
golang.org/x/image v0.11.0 // indirect
58+
golang.org/x/net v0.14.0 // indirect
59+
golang.org/x/sys v0.11.0 // indirect
60+
golang.org/x/term v0.11.0 // indirect
61+
golang.org/x/text v0.12.0 // indirect
6062
)
6163

6264
replace github.com/miekg/dns v1.0.14 => github.com/miekg/dns v1.1.46

0 commit comments

Comments
 (0)