[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ANN] Guile-DSV 0.4.1 released
From: |
Dr. Arne Babenhauserheide |
Subject: |
Re: [ANN] Guile-DSV 0.4.1 released |
Date: |
Sat, 11 Dec 2021 12:01:00 +0100 |
User-agent: |
mu4e 1.6.10; emacs 27.2 |
poptsov.artyom@gmail.com (Artyom V. Poptsov) writes:
> I'm pleased to announce Guile-DSV 0.4.1:
> https://github.com/artyom-poptsov/guile-dsv/releases/tag/v0.4.1
Wow, congrats!
> The main changes in this release are related to the 'dsv' tool: now it
> allows to print the DSV data as fancy tables using extended table
> parameters and table presets. See the full list of user-visible changes
> below.
>
> Examples:
>
> $ echo -e "a1,b1,c1\na2,b2,c2\n" | dsv -D, -b "ascii"
> .-----------------------------.
> | a1 | b1 | c1 |
> |---------+---------+---------|
> | a2 | b2 | c2 |
> '-----------------------------'
Does the ascii-version cope mith headers?
Would it be possible to add org-mode output?
Wisful thinking:
$ echo -e "ah,bh,ch\na1,b1,c1\na2,b2,c2\n" | dsv -D, --with-header -b "org"
| ah | bh | ch |
|---------+---------+---------|
| a1 | b1 | c1 |
| a2 | b2 | c2 |
With this I could easily convert a CSV to org-mode and then add
#+TBLFM: @2$1..@>$>='(arbitrary-lisp-code @# $# $0)
for complex evaluation of the data.
See https://orgmode.org/manual/Field-and-range-formulas.html
and https://orgmode.org/manual/Formula-syntax-for-Calc.html
and https://orgmode.org/manual/Formula-syntax-for-Lisp.html
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de
signature.asc
Description: PGP signature