Skip to content

Commit

Permalink
v0.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shenwei356 committed Dec 5, 2024
1 parent 92166be commit b01b81b
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 27 deletions.
52 changes: 33 additions & 19 deletions download/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -621,14 +621,16 @@ <h1 id="download">Download</h1>
in <a href="https://github.com/shenwei356/csvtk/releases">release</a> page.</p>
<h2 id="current-version">Current Version</h2>
<ul>
<li><a href="https://github.com/shenwei356/csvtk/releases/tag/v0.31.1">csvtk v0.31.1</a>
<a href="https://github.com/shenwei356/csvtk/releases/tag/v0.31.1"><img alt="Github Releases (by Release)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/v0.31.1/total.svg" /></a><ul>
<li><a href="https://github.com/shenwei356/csvtk/releases/tag/v0.32.0">csvtk v0.32.0</a>
<a href="https://github.com/shenwei356/csvtk/releases/tag/v0.32.0"><img alt="Github Releases (by Release)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/v0.32.0/total.svg" /></a><ul>
<li><code>csvtk filter2/mutate2/mutate3</code>:<ul>
<li><strong>fix the slow speed</strong>, I was stupid before. <a href="https://github.com/shenwei356/csvtk/issues/269">#269</a></li>
<li>fix a bug of mismatch between column names and values which was brought in v0.31.1. <a href="https://github.com/shenwei356/csvtk/issues/295">#295</a></li>
<li>add some unit tests.</li>
</ul>
</li>
<li><code>csvtk csv2json</code>:<ul>
<li>further fix values with double quotes and new line symbols. <a href="https://github.com/shenwei356/csvtk/issues/291">#291</a></li>
<li><code>csvtk pretty</code>:<ul>
<li><code>-w/--min-width</code> and <code>-W/--max-width</code> accept multiple values for setting column-specific thresholds.</li>
<li>add a new format style <code>round</code> for round corners.</li>
</ul>
</li>
</ul>
Expand All @@ -648,44 +650,44 @@ <h3 id="links">Links</h3>
<tr>
<td style="text-align: left;">Linux</td>
<td style="text-align: left;">32-bit</td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.31.1/csvtk_linux_386.tar.gz">csvtk_linux_386.tar.gz</a>,<br/> <a href="http://app.shenwei.me/data/csvtk/csvtk_linux_386.tar.gz">中国镜像</a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.31.1/csvtk_linux_386.tar.gz"><img alt="Github Releases (by Asset)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_386.tar.gz.svg?maxAge=3600" /></a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.32.0/csvtk_linux_386.tar.gz">csvtk_linux_386.tar.gz</a>,<br/> <a href="http://app.shenwei.me/data/csvtk/csvtk_linux_386.tar.gz">中国镜像</a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.32.0/csvtk_linux_386.tar.gz"><img alt="Github Releases (by Asset)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_386.tar.gz.svg?maxAge=3600" /></a></td>
</tr>
<tr>
<td style="text-align: left;">Linux</td>
<td style="text-align: left;"><strong>64-bit</strong></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.31.1/csvtk_linux_amd64.tar.gz"><strong>csvtk_linux_amd64.tar.gz</strong></a>,<br/> <a href="http://app.shenwei.me/data/csvtk/csvtk_linux_amd64.tar.gz">中国镜像</a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.31.1/csvtk_linux_amd64.tar.gz"><img alt="Github Releases (by Asset)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_amd64.tar.gz.svg?maxAge=3600" /></a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.32.0/csvtk_linux_amd64.tar.gz"><strong>csvtk_linux_amd64.tar.gz</strong></a>,<br/> <a href="http://app.shenwei.me/data/csvtk/csvtk_linux_amd64.tar.gz">中国镜像</a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.32.0/csvtk_linux_amd64.tar.gz"><img alt="Github Releases (by Asset)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_amd64.tar.gz.svg?maxAge=3600" /></a></td>
</tr>
<tr>
<td style="text-align: left;">Linux</td>
<td style="text-align: left;"><strong>64-bit</strong></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.31.1/csvtk_linux_arm64.tar.gz"><strong>csvtk_linux_arm64.tar.gz</strong></a>,<br/> <a href="http://app.shenwei.me/data/csvtk/csvtk_linux_arm64.tar.gz">中国镜像</a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.31.1/csvtk_linux_arm64.tar.gz"><img alt="Github Releases (by Asset)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_arm64.tar.gz.svg?maxAge=3600" /></a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.32.0/csvtk_linux_arm64.tar.gz"><strong>csvtk_linux_arm64.tar.gz</strong></a>,<br/> <a href="http://app.shenwei.me/data/csvtk/csvtk_linux_arm64.tar.gz">中国镜像</a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.32.0/csvtk_linux_arm64.tar.gz"><img alt="Github Releases (by Asset)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_arm64.tar.gz.svg?maxAge=3600" /></a></td>
</tr>
<tr>
<td style="text-align: left;">macOS</td>
<td style="text-align: left;"><strong>64-bit</strong></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.31.1/csvtk_darwin_amd64.tar.gz"><strong>csvtk_darwin_amd64.tar.gz</strong></a>,<br/> <a href="http://app.shenwei.me/data/csvtk/csvtk_darwin_amd64.tar.gz">中国镜像</a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.31.1/csvtk_darwin_amd64.tar.gz"><img alt="Github Releases (by Asset)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_darwin_amd64.tar.gz.svg?maxAge=3600" /></a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.32.0/csvtk_darwin_amd64.tar.gz"><strong>csvtk_darwin_amd64.tar.gz</strong></a>,<br/> <a href="http://app.shenwei.me/data/csvtk/csvtk_darwin_amd64.tar.gz">中国镜像</a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.32.0/csvtk_darwin_amd64.tar.gz"><img alt="Github Releases (by Asset)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_darwin_amd64.tar.gz.svg?maxAge=3600" /></a></td>
</tr>
<tr>
<td style="text-align: left;">macOS</td>
<td style="text-align: left;"><strong>arm64</strong></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.31.1/csvtk_darwin_arm64.tar.gz"><strong>csvtk_darwin_arm64.tar.gz</strong></a>,<br/> <a href="http://app.shenwei.me/data/csvtk/csvtk_darwin_arm64.tar.gz">中国镜像</a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.31.1/csvtk_darwin_arm64.tar.gz"><img alt="Github Releases (by Asset)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_darwin_arm64.tar.gz.svg?maxAge=3600" /></a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.32.0/csvtk_darwin_arm64.tar.gz"><strong>csvtk_darwin_arm64.tar.gz</strong></a>,<br/> <a href="http://app.shenwei.me/data/csvtk/csvtk_darwin_arm64.tar.gz">中国镜像</a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.32.0/csvtk_darwin_arm64.tar.gz"><img alt="Github Releases (by Asset)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_darwin_arm64.tar.gz.svg?maxAge=3600" /></a></td>
</tr>
<tr>
<td style="text-align: left;">Windows</td>
<td style="text-align: left;">32-bit</td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.31.1/csvtk_windows_386.exe.tar.gz">csvtk_windows_386.exe.tar.gz</a>,<br/> <a href="http://app.shenwei.me/data/csvtk/csvtk_windows_386.exe.tar.gz">中国镜像</a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.31.1/csvtk_windows_386.exe.tar.gz"><img alt="Github Releases (by Asset)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_windows_386.exe.tar.gz.svg?maxAge=3600" /></a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.32.0/csvtk_windows_386.exe.tar.gz">csvtk_windows_386.exe.tar.gz</a>,<br/> <a href="http://app.shenwei.me/data/csvtk/csvtk_windows_386.exe.tar.gz">中国镜像</a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.32.0/csvtk_windows_386.exe.tar.gz"><img alt="Github Releases (by Asset)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_windows_386.exe.tar.gz.svg?maxAge=3600" /></a></td>
</tr>
<tr>
<td style="text-align: left;">Windows</td>
<td style="text-align: left;"><strong>64-bit</strong></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.31.1/csvtk_windows_amd64.exe.tar.gz"><strong>csvtk_windows_amd64.exe.tar.gz</strong></a>,<br/> <a href="http://app.shenwei.me/data/csvtk/csvtk_windows_amd64.exe.tar.gz">中国镜像</a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.31.1/csvtk_windows_amd64.exe.tar.gz"><img alt="Github Releases (by Asset)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_windows_amd64.exe.tar.gz.svg?maxAge=3600" /></a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.32.0/csvtk_windows_amd64.exe.tar.gz"><strong>csvtk_windows_amd64.exe.tar.gz</strong></a>,<br/> <a href="http://app.shenwei.me/data/csvtk/csvtk_windows_amd64.exe.tar.gz">中国镜像</a></td>
<td style="text-align: left;"><a href="https://github.com/shenwei356/csvtk/releases/download/v0.32.0/csvtk_windows_amd64.exe.tar.gz"><img alt="Github Releases (by Asset)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_windows_amd64.exe.tar.gz.svg?maxAge=3600" /></a></td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -799,6 +801,18 @@ <h2 id="shell-completion">Shell-completion</h2>
</code></pre>
<h2 id="release-history">Release history</h2>
<ul>
<li><a href="https://github.com/shenwei356/csvtk/releases/tag/v0.31.1">csvtk v0.31.1</a>
<a href="https://github.com/shenwei356/csvtk/releases/tag/v0.31.1"><img alt="Github Releases (by Release)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/v0.31.1/total.svg" /></a><ul>
<li><code>csvtk filter2/mutate2/mutate3</code>:<ul>
<li><strong>fix the slow speed</strong>, I was stupid before. <a href="https://github.com/shenwei356/csvtk/issues/269">#269</a></li>
</ul>
</li>
<li><code>csvtk csv2json</code>:<ul>
<li>further fix values with double quotes and new line symbols. <a href="https://github.com/shenwei356/csvtk/issues/291">#291</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="https://github.com/shenwei356/csvtk/releases/tag/v0.31.0">csvtk v0.31.0</a>
<a href="https://github.com/shenwei356/csvtk/releases/tag/v0.31.0"><img alt="Github Releases (by Release)" src="https://img.shields.io/github/downloads/shenwei356/csvtk/v0.31.0/total.svg" /></a><ul>
<li>new command:<ul>
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Binary file modified sitemap.xml.gz
Binary file not shown.
49 changes: 42 additions & 7 deletions usage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ <h2 id="csvtk">csvtk</h2>
<p>Usage</p>
<pre><code class="language-text">csvtk -- a cross-platform, efficient and practical CSV/TSV toolkit

Version: 0.31.1
Version: 0.32.0

Author: Wei Shen &lt;[email protected]&gt;

Expand Down Expand Up @@ -1826,8 +1826,11 @@ <h2 id="pretty">pretty</h2>

How to:
1. First -n/--buf-rows rows are read to check the minimum and maximum widths
of each columns. You can also set the global thresholds -w/--min-width and
-W/--max-width.
of each columns.

You can also set the global or column-specific (the number of values need
equal to the number of columns) thresholds via -w/--min-width and -W/--max-width.

1a. Cells longer than the maximum width will be wrapped (default) or
clipped (--clip).
Usually, the text is wrapped in space (-x/--wrap-delimiter). But if one
Expand Down Expand Up @@ -1903,6 +1906,16 @@ <h2 id="pretty">pretty</h2>
| 2 | Tiny |
└----┴------┘

round:

╭----┬------╮
| id | size |
├====┼======┤
| 1 | Huge |
├----┼------┤
| 2 | Tiny |
╰----┴------╯

bold:

┏━━━━┳━━━━━━┓
Expand Down Expand Up @@ -1936,11 +1949,15 @@ <h2 id="pretty">pretty</h2>
--clip clip longer cell instead of wrapping
--clip-mark string clip mark (default &quot;...&quot;)
-h, --help help for pretty
-W, --max-width int max width
-w, --min-width int min width
-W, --max-width strings max width, multiple values (max widths for each column, 0 for no limit)
should be separated by commas. E.g., -W 40,20,0 limits the max widths of
1st and 2nd columns
-w, --min-width strings min width, multiple values (min widths for each column, 0 for no limit)
should be separated by commas. E.g., -w 0,10,10 limits the min widths of
2nd and 3rd columns
-s, --separator string fields/columns separator (default &quot; &quot;)
-S, --style string output syle. available vaules: default, plain, simple, 3line, grid,
light, bold, double. check https://github.com/shenwei356/stable
light, round, bold, double. check https://github.com/shenwei356/stable
-x, --wrap-delimiter string delimiter for wrapping cells (default &quot; &quot;)

</code></pre>
Expand Down Expand Up @@ -2036,7 +2053,7 @@ <h2 id="pretty">pretty</h2>
</code></pre>
</li>
<li>
<p>Set the minimum and maximum width.</p>
<p>Set the global minimum and maximum width.</p>
<pre><code>$ csvtk pretty testdata/long.csv -w 5 -W 40
id name message
----- ------------------ ----------------------------------------
Expand All @@ -2050,6 +2067,24 @@ <h2 id="pretty">pretty</h2>
</code></pre>
</li>
<li>
<p>Set min and max widths for all columns.</p>
<pre><code>$ csvtk pretty testdata/long.csv -w 5,25,0 -W 0,30,40 -m 1,2 -S round
╭-------┬---------------------------┬------------------------------------------╮
| id | name | message |
├=======┼===========================┼==========================================┤
| 1 | Donec Vitae | Quis autem vel eum iure reprehenderit |
| | | qui in ea voluptate velit esse. |
├-------┼---------------------------┼------------------------------------------┤
| 2 | Quaerat Voluptatem | At vero eos et accusamus et iusto odio. |
├-------┼---------------------------┼------------------------------------------┤
| 3 | Aliquam lorem | Curabitur ullamcorper ultricies nisi. |
| | | Nam eget dui. Etiam rhoncus. Maecenas |
| | | tempus, tellus eget condimentum |
| | | rhoncus, sem quam semper libero. |
╰-------┴---------------------------┴------------------------------------------╯
</code></pre>
</li>
<li>
<p>Clipping cells instead of wrapping</p>
<pre><code>$ csvtk pretty testdata/long.csv -w 5 -W 40 --clip
id name message
Expand Down

0 comments on commit b01b81b

Please sign in to comment.