From 2ae2d2b33ddbb5bab7f7eca2468026ebb04332ba Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Tue, 14 Jan 2025 07:29:31 +0100 Subject: [PATCH] add transpose stuff to README, bump version --- README.md | 16 ++++++++++++++++ cfg/config.go | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 12913a4..14d738f 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,22 @@ otherwise on all rows. There are more output modes like org-mode (orgtbl) and markdown. +You can also use it to modify certain cells using regular expression +matching. For example: + +```shell +kubectl get pods | tablizer -n -T4 -R '/ /-/' +NAME READY STATUS RESTARTS AGE +repldepl-7bcd8d5b64-7zq4l 1/1 Running 1-(69m-ago) 5h26m +repldepl-7bcd8d5b64-m48n8 1/1 Running 1-(69m-ago) 5h26m +repldepl-7bcd8d5b64-q2bf4 1/1 Running 1-(69m-ago) 5h26m +``` + +Here, we modified the 4th column (`-T4`) by replacing every space with +a dash. If you need to work with `/` characters, you can also use any +other separator, for instance: `-R '| |-|'`. + + Last but not least tablizer has support for plugins written in lisp. This feature is expermental yet. Take a look into the manpage for details. diff --git a/cfg/config.go b/cfg/config.go index beedde7..7de978f 100644 --- a/cfg/config.go +++ b/cfg/config.go @@ -29,7 +29,7 @@ import ( ) const DefaultSeparator string = `(\s\s+|\t)` -const Version string = "v1.2.3" +const Version string = "v1.3.0" const MAXPARTS = 2 var DefaultLoadPath = os.Getenv("HOME") + "/.config/tablizer/lisp"