MasahikoSawada / civ

Licence: MIT License
A simple CSV interactive viewer written in Go

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to civ

elm-csv
Decode CSV in the most boring way possible.
Stars: ✭ 23 (+0%)
Mutual labels:  csv
shopify-product-csvs-and-images
Shopify product CSVs and images to seed your store with product data.
Stars: ✭ 76 (+230.43%)
Mutual labels:  csv
VBA-CSV-interface
The most powerful and comprehensive CSV/TSV/DSV data management library for VBA, providing parsing/writing capabilities compliant with RFC-4180 specifications and a complete set of tools for manipulating records and fields.
Stars: ✭ 24 (+4.35%)
Mutual labels:  csv
AlphaVantageAPI
An Opinionated AlphaVantage API Wrapper in Python 3.9. Compatible with Pandas TA (pip install pandas_ta). Get your FREE API Key at https://www.alphavantage.co/support/
Stars: ✭ 77 (+234.78%)
Mutual labels:  csv
go-csv-tag
Read csv file from go using tags
Stars: ✭ 94 (+308.7%)
Mutual labels:  csv
csv2json
Writen in C, CSV file to JSON file/string converter with utf8 support.
Stars: ✭ 18 (-21.74%)
Mutual labels:  csv
django-excel-response
Django package to easily render Excel spreadsheets
Stars: ✭ 74 (+221.74%)
Mutual labels:  csv
spparser
an async ETL tool written in Python.
Stars: ✭ 34 (+47.83%)
Mutual labels:  csv
workbook
simple framework for containing spreadsheet like data
Stars: ✭ 13 (-43.48%)
Mutual labels:  csv
data-models
Collection of various biomedical data models in parseable formats.
Stars: ✭ 23 (+0%)
Mutual labels:  csv
tableschema-go
A Go library for working with Table Schema.
Stars: ✭ 41 (+78.26%)
Mutual labels:  csv
scala-csv-parser
CSV parser library.
Stars: ✭ 24 (+4.35%)
Mutual labels:  csv
YouPlot
A command line tool that draw plots on the terminal.
Stars: ✭ 412 (+1691.3%)
Mutual labels:  csv
org-clock-csv
Export Emacs org-mode clock entries to CSV format.
Stars: ✭ 80 (+247.83%)
Mutual labels:  csv
dbd
dbd is a database prototyping tool that enables data analysts and engineers to quickly load and transform data in SQL databases.
Stars: ✭ 30 (+30.43%)
Mutual labels:  csv
Jekyll
Call of Duty XAsset exporter that dumps raw assets from a game's memory.
Stars: ✭ 29 (+26.09%)
Mutual labels:  csv
flatpack
CSV/Tab Delimited and Fixed Length Parser and Writer
Stars: ✭ 55 (+139.13%)
Mutual labels:  csv
django-csv-export-view
Django class-based view for CSV exports
Stars: ✭ 17 (-26.09%)
Mutual labels:  csv
csv-to-sqlite
A desktop app to convert CSV files to SQLite databases!
Stars: ✭ 68 (+195.65%)
Mutual labels:  csv
AndrOBD-Plugin
AndrOBD plugin development project
Stars: ✭ 38 (+65.22%)
Mutual labels:  csv

civ

A simple CSV interactive viewer.

Demo

civ demo

Build

go get -u github.com/MasahikoSawada/civ

Usage

$ civ [options] [FILE]
Option Description
-d string Use string as a delimiter instead of comma(,)
-H Set dummy header (col_1, col_2 ...)
  • civ reads data from stdin if no file is specified.
  • civ processes the first line as a header line by default. If the first line of the file is not header line please use -H option to set dummy headers.
  • -d option allows a speciial argument \t to parse TSV.

Query Buffer

civ has a buffer for user-input query at top of the window. The first character indicates the current mode as described below.

Modes

civ has 4 modes: view mode, command mode, search mode and filter mode.

You can swtich modes by special character when the query buffer is empty.

  • ':' : View Mode
  • '@' : Command Mode
  • '/' : Search Mode
  • '^' : Filter Mode

Press Ctrl-g always clear all query buffer and switch to view mode.

Press Ctrl-c exits but executing @exit also exits while output the table data to stdout.

Press Enter saves the result of the current command (at most one result for each searching and filtering).

View Mode(:)

Viewing the table data with the following ''less-like'' key binds:

Key Description
e Forward one line
y Backward one line
f, SPACE Forward one window
b Forward one window
d Forward one half-window
u Backward one half-window
g Go to first line in file
G Go to last line in file

Command Mode(@)

Executing the following commands modify the table:

Command Description
@hide column-name [...] Hide the specified column(s)
@show column-name [...] Show the specified hidden column(s)
@show_only column-name [...] Show only the specified column(s)
@reset Reset all configurations(row filtering, column visibility etc)
@exit Output the table data to stdout and exit normally

Pressing Enter key executes the input command.

Note that specifying column name is case-insensive.

Search Mode(/)

civ supports the incremental search hight-lighting the matched words.

Filter Mode(^)

civ supports the incremental filtering rows.

Limitation

Since civ is continually being improved it has some limitations. These limitation might be resolved in the future.

  • Not supports multi-byte characters.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].