mirror of
https://codeberg.org/scip/tablizer.git
synced 2026-02-04 10:20:59 +01:00
Compare commits
7 Commits
colorize-o
...
2122805301
| Author | SHA1 | Date | |
|---|---|---|---|
| 2122805301 | |||
| 935f5cc28f | |||
| 6e7b6c1a20 | |||
| e4ce325d98 | |||
| 1e9c23d5fa | |||
| 6d92d70ea2 | |||
|
|
834892e302 |
@@ -18,6 +18,9 @@ builds:
|
|||||||
- windows
|
- windows
|
||||||
- darwin
|
- darwin
|
||||||
- freebsd
|
- freebsd
|
||||||
|
goarch:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- formats: [tar.gz]
|
- formats: [tar.gz]
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -45,17 +45,17 @@ Operational Flags:
|
|||||||
-n, --numbering Enable header numbering
|
-n, --numbering Enable header numbering
|
||||||
-N, --no-color Disable pattern highlighting
|
-N, --no-color Disable pattern highlighting
|
||||||
-H, --no-headers Disable headers display
|
-H, --no-headers Disable headers display
|
||||||
-s, --separator <string> Custom field separator
|
-s, --separator <string> Custom field separator (maybe char, string or :class:)
|
||||||
-k, --sort-by <int|name> Sort by column (default: 1)
|
-k, --sort-by <int|name> Sort by column (default: 1)
|
||||||
-z, --fuzzy Use fuzzy search [experimental]
|
-z, --fuzzy Use fuzzy search [experimental]
|
||||||
-F, --filter <field[!]=reg> Filter given field with regex, can be used multiple times
|
-F, --filter <field[!]=reg> Filter given field with regex, can be used multiple times
|
||||||
-T, --transpose-columns string Transpose the speficied columns (separated by ,)
|
-T, --transpose-columns string Transpose the speficied columns (separated by ,)
|
||||||
-R, --regex-transposer </from/to/> Apply /search/replace/ regexp to fields given in -T
|
-R, --regex-transposer </from/to/> Apply /search/replace/ regexp to fields given in -T
|
||||||
|
-K --regex-colorizer /from/color/ colorize pattern of output (color: fg[:bg])
|
||||||
-j, --json Read JSON input (must be array of hashes)
|
-j, --json Read JSON input (must be array of hashes)
|
||||||
-I, --interactive Interactively filter and select rows
|
-I, --interactive Interactively filter and select rows
|
||||||
--auto-headers Generate headers if there are none present in input
|
-g, --auto-headers Generate headers if there are none present in input
|
||||||
--custom-headers a,b,... Use custom headers, separated by comma
|
-x, --custom-headers a,b,... Use custom headers, separated by comma
|
||||||
|
|
||||||
|
|
||||||
Output Flags (mutually exclusive):
|
Output Flags (mutually exclusive):
|
||||||
-X, --extended Enable extended output
|
-X, --extended Enable extended output
|
||||||
@@ -63,12 +63,14 @@ Output Flags (mutually exclusive):
|
|||||||
-O, --orgtbl Enable org-mode table output
|
-O, --orgtbl Enable org-mode table output
|
||||||
-S, --shell Enable shell evaluable output
|
-S, --shell Enable shell evaluable output
|
||||||
-Y, --yaml Enable yaml output
|
-Y, --yaml Enable yaml output
|
||||||
|
-J, --jsonout Enable JSON output
|
||||||
-C, --csv Enable CSV output
|
-C, --csv Enable CSV output
|
||||||
-A, --ascii Default output mode, ascii tabular
|
-A, --ascii Default output mode, ascii tabular
|
||||||
|
-P, --template <tpl> Enable template mode with template <tpl>
|
||||||
-L, --hightlight-lines Use alternating background colors for tables
|
-L, --hightlight-lines Use alternating background colors for tables
|
||||||
|
-o, --ofs <char> Output field separator, used by -A and -C.
|
||||||
-y, --yank-columns Yank specified columns (separated by ,) to clipboard,
|
-y, --yank-columns Yank specified columns (separated by ,) to clipboard,
|
||||||
space separated
|
space separated
|
||||||
--ofs <char> Output field separator, used by -A and -C.
|
|
||||||
|
|
||||||
Sort Mode Flags (mutually exclusive):
|
Sort Mode Flags (mutually exclusive):
|
||||||
-a, --sort-age sort according to age (duration) string
|
-a, --sort-age sort according to age (duration) string
|
||||||
@@ -176,7 +178,7 @@ 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
|
a dash. If you need to work with `/` characters, you can also use any
|
||||||
other separator, for instance: `-R '| |-|'`.
|
other separator, for instance: `-R '| |-|'`.
|
||||||
|
|
||||||
There's also an interactive mode, invoked with the option B<-I>, where
|
There's also an interactive mode, invoked with the option `-I`, where
|
||||||
you can interactively filter and select rows:
|
you can interactively filter and select rows:
|
||||||
|
|
||||||
<img width="937" height="293" alt="interactive" src="https://github.com/user-attachments/assets/0d4d65e2-d156-43ed-8021-39047c7939ed" />
|
<img width="937" height="293" alt="interactive" src="https://github.com/user-attachments/assets/0d4d65e2-d156-43ed-8021-39047c7939ed" />
|
||||||
|
|||||||
BIN
screenshot-highlight-by-pattern.png
Normal file
BIN
screenshot-highlight-by-pattern.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
BIN
screenshot-highlight-lines.png
Normal file
BIN
screenshot-highlight-lines.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
BIN
screenshot-interactive-mode.png
Normal file
BIN
screenshot-interactive-mode.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
Reference in New Issue
Block a user