ibraheemdev / modern-unix

A collection of modern/faster/saner alternatives to common unix commands.
30.59k stars 775 forks source link

Add VisiData a modern TUI for exploring data. #53

Open frosencrantz opened 3 years ago

frosencrantz commented 3 years ago

VisiData is a wonderful terminal tool for exploring data. It seems like most of the tools on this list are written in Rust, VisiData is written in Python and is very responsive. There is no equivalent in Rust/C/Go/etc and it fills a niche that is not covered well by any other terminal tool. I've been using this tool for several years now, and still it is one my favorite finds over the last couple years, even over many of the other tools in this list.

MrMino commented 3 years ago

@frosencrantz which common Unix command is it an alternative to?

frosencrantz commented 3 years ago

I don't think it has a direct replacement. But I've found I use awk/sed/cut/sort a lot less since I started using VisiData. So it ends up being a great replacement for awk/sed/cut/sort for how I generally use those tools, which is to gather some details about some data file or output of some Unix system command that generate tabular data like ps.

MrMino commented 3 years ago

For convenience: https://github.com/saulpw/visidata

blaggacao commented 3 years ago

If it doesn't work with nix out of the box, that's at least a bit "suspicious" upfront. :smile_cat:

$ nix profile install nixpkgs#visidata

$ vd --version
Traceback (most recent call last):
  File "/nix/store/slqf9074ha8km0xf3x5vykz4nc7vcqab-visidata-2.5/bin/.vd-wrapped", line 7, in <module>
    visidata.main.vd_cli()
  File "/nix/store/slqf9074ha8km0xf3x5vykz4nc7vcqab-visidata-2.5/lib/python3.9/site-packages/visidata/main.py", line 320, in vd_cli
    rc = main_vd()
  File "/nix/store/slqf9074ha8km0xf3x5vykz4nc7vcqab-visidata-2.5/lib/python3.9/site-packages/visidata/main.py", line 84, in main_vd
    locale.setlocale(locale.LC_ALL, '')
  File "/nix/store/81lwy2hfqj4c1943b1x8a0qsivjhdhw9-python3-3.9.6/lib/python3.9/locale.py", line 610, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
frosencrantz commented 3 years ago

I'm not familiar with nix. Some simple searches suggested: https://nixos.wiki/wiki/Locales @blaggacao does that help? You can report a bug here https://github.com/saulpw/visidata/issues