Skip to content
/ vsf Public

A Go CLI tool for column alignment and text formatting. Works great with fzf.

License

Notifications You must be signed in to change notification settings

sisoe24/vsf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vsf - Very Simple Formatter

A Go CLI tool for column alignment and text formatting. Works great with fzf.

What it does

  • Aligns text columns based on delimiters
  • Integrates smoothly with fzf and Unix pipelines
  • Handy for formatting Git logs, CSVs, and other structured text

Quick start

go install github.com/sisoe24/vsf
echo "name:age\njohnny:30\namy:25" | vsf | fzf --header-lines 1

Basic usage

vsf [-d delimiter] [-o output_delimiter] [-h]

Some useful examples

Git branch formatting

git for-each-ref --sort=-committerdate refs/heads/ --format='%(refname:short):%(committerdate:short)' | vsf -o "|" | fzf

CSV exploration

cat data.csv | vsf -d ',' | fzf --header-lines 1

Development

make  # Build
make test  # Run tests

Contributing

PRs welcome!

License

MIT License. See LICENSE file for more info.