From 07c24054cab965800983ef40f53a05c2db131ede Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 14 Sep 2026 13:26:51 +0200 Subject: krino: 0.0.3 — the plan as one block per file, wrapped, and -P MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each file shows its steps, then the rule and the reason it matched, one field per line; on a terminal every line wraps to its width with continuation lines under their own column, and piped output is never wrapped. Choosing per file shows the same block. -P / --no-pager prints the plan without the pager. A duplicate's original is shown with ~. --- README.md | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 34d3a78..77733f5 100644 --- a/README.md +++ b/README.md @@ -101,12 +101,18 @@ $ krino -n demo krino: demo /tmp/krino-demo 6 scanned · 1 to act on · 0 warnings · 0.00s - # file actions rule - 1 acme-invoice.pdf move → Filed/Acme/ acme name "acme" + 1 acme-invoice.pdf + move → Filed/Acme/ + rule acme + because name "acme" not acted on: 5 unmatched (-v lists them) ``` +On a terminal each block is wrapped to its width. A plan taller than the +terminal opens in your pager; `-P` prints it straight out instead, and +`krino -n > plan.txt` saves it as plain text, one field per line. + Without `-n` or `-y`, `krino demo` shows the same plan and then asks, one key at a time, no Enter needed: @@ -114,9 +120,13 @@ key at a time, no Enter needed: [a] apply all [c] choose per file [s] skip this directory [q] quit ``` -`c` asks about each file in turn: +`c` asks about each file in turn, showing the same block as the plan above: ``` +[1/1] acme-invoice.pdf + move → Filed/Acme/ + rule acme + because name "acme" [y] yes [n] no [a] yes to this and all remaining [d] done, apply chosen so far [q] quit, apply nothing ``` @@ -130,8 +140,10 @@ $ krino -y demo krino: demo /tmp/krino-demo 6 scanned · 1 to act on · 0 warnings · 0.00s - # file actions rule - 1 acme-invoice.pdf move → Filed/Acme/ acme name "acme" + 1 acme-invoice.pdf + move → Filed/Acme/ + rule acme + because name "acme" not acted on: 5 unmatched (-v lists them) 1 applied · 0 failed · 0 declined -- cgit v1.3