From: Gustav Eek Date: Mon, 27 Mar 2023 22:21:54 +0000 (+0200) Subject: Doc. Update instructions to include piped tables X-Git-Tag: v.0.6 X-Git-Url: https://git.g-eek.se/?a=commitdiff_plain;h=a9c9291bea1d86b2127633f1e91abf55699848cb;p=ranknauto.git Doc. Update instructions to include piped tables --- diff --git a/README b/README index 4d6cc95..5b75e94 100644 --- a/README +++ b/README @@ -43,25 +43,39 @@ echo -ne "Första post\nAndra\nTredje plats\nOch fjärde\n" \ | ranknauto -s heavy ``` -Bullet lists are respected, so bullet that are fed will remain in the -output. Already ranked lists can be inserted; the previous -ranking is ignored. Empty lines are ignored. +Bullet lists, numbered item lists and piped tables are all respected. +That means that bullets which are fed will remain in the output. The +numbering is regenerated, starting from 1. List patterns are preserved +at best effort, the widest input number is used for pattern +definition, and output is adopted for right alignment. Piped tables +are similarly regenerated. -The same holds for numbered item lists. The numbering is regenerated, -starting from 1. The list pattern is however preserved at best effort, -the widest input number is used for pattern definition, and output -is adopted for right alignment. +Also already ranked lists can be inserted; the previous ranking is +ignored. Empty lines are ignored. Example: ``` -echo -ne "\n * 48 % Första post\n * 9 % Och fjärde\n * 16 % Tredje plats\n * 27 % Andra\n" \ - | ranknauto -echo -ne "\n 3) 48 % Första post\n 4) 9 % Och fjärde\n 5) 16 % Tredje plats\n 6) 27 % Andra\n" \ - | ranknauto +cat <