Crates.io | nctok |
lib.rs | nctok |
version | 0.1.0 |
source | src |
created_at | 2024-04-23 15:53:40.9516 |
updated_at | 2024-04-23 15:53:40.9516 |
description | A program for interactive navigating through weighted hierarchical structured data and analyzing them. Weighted means that each item have its own value - number |
homepage | |
repository | https://github.com/UnkwUsr/nctok |
max_upload_size | |
id | 1217772 |
size | 37,565 |
A program for interactive navigating through weighted hierarchical structured data and analyzing them. (weighted means that each item have its own value - number)
This is a nice tool for analyzing and researching datasets, and simplicity of input format makes it easy to write your own scripts that produces data you want to analyze fast, right in shell (like something in files, git meta data (number of commits per each file), etc. For more see Examples section).
File space usage:
Git commits per each file, linux kernel 6.8 repo:
... | nctok
Where ...
should produce output in format:
<number> <path/to/item>
<number> <path/to/another_item>
For concrete usecases see Examples section.
j
/k
- go down/up in listl
/h
- go deep down/up (inside/out)g
- go to top (very first item)G
- go to bottom (latest item)w
- toggle preview windowa
- toggle human-readable numbers formattingq
- quit$ nctok --help
...
Options:
--reverse Invert sort order
Parser:
--number-delimiter <NUMBER_DELIMITER>
Delimiter between items number value and path [default: " "]
--path-separator <PATH_SEPARATOR>
Separator in items path [default: /]
Interface:
--preview
Show preview window for entry under cursor (can also toggle with 'w' key)
--no-human-readable
Disable formatting big numbers in human-readable (can also toggle with 'a' key)
WIP
cargo install nctok
cargo install --path .