Package: tabview
TabviewThis project is functional but future development will be sporadic and
limited. For a more fully featured CSV viewer/spreadsheet app check out theVisidata project.View a CSV file in a spreadsheet-like display.Posted by Scott Hansen <firecat4153@gmail.com>Original code forked from:http://www.amk.ca/files/simple/tabview.txtContributed by A.M. Kuchling <amk@amk.ca>Other Contributors:Matus Gura <matus.gura@gmail.com>Nathan Typanski <ntypanski@gmail.com>Sébastien Celles <s.celles@gmail.com>Yuri D’Elia <wavexx@thregr.org>The highlighted position is shown in the top-left corner of the screen; next to
it are shown the contents of that cell.Features:Python 3.4+Spreadsheet-like view for easily visualizing tabular dataVim-like navigation (h,j,k,l, g(top), G(bottom), 12G goto line 12, m - mark,
‘ - goto mark, etc.)Toggle persistent header rowSort ascending or descending by any column. Dynamically change column width and gapSort in ‘natural order’ to improve numeric sortingFull-text incremental search, n and p to cycle between search results‘Enter’ to view the full cell contentsYank cell contents to the clipboardFile can be reloaded in-place if the data changes.F1 or ? for keybindingsCan also use from python command line to visualize any tabular data (e.g.
list-of-lists)See the screenshots directory for some pictures.Requires:Python 3.4+Xsel or xclip (Optional - only required for ‘yank’ to clipboard)Installation:pip install tabviewOR# python setup.py installOR$ python setup.py install--userORArchlinux AUR packageUsage:From command line:tabview<filename>tabview<filename>--start_pos6,5tabview<filename>+6:5(equivalenttoprevioususage)tabview<filename>--encodingiso8859-1+6:From python command line to view an objectimporttabviewasta=[["a","b","c"],["d","e","f"]]t.view(a)From python command line to view a fileimporttabviewastt.view(<filename>,start_pos=(60,40))Using as the pager for MySQL. Set these options in ~/.my.cnf:pager=tabview -d '\t' --quoting QUOTE_NONE -
silentTests:python tests/test_tabview.pyKeybindings:F1 or ?Show this list of keybindingsCursor keys or h,j,k,lMove the highlighted cell, scrolling if required.Q or qQuitHome, ^, Ctrl-aMove to the start of this lineEnd, $, Ctrl-eMove to the end of this line[num]|Goto column <num>, or first column
if num not givenPgUp/PgDn or J/KMove a page up or downH,LPage left or rightgGoto top of current column[num]GGoto line <num> or bottom of current column
if num not givenCtrl-gShow file/data informationInsert or mMemorize this positionDelete or ‘Return to memorized position (if any)EnterView full cell contents in pop-up window./SearchnNext search resultpPrevious search resulttToggle fixed header row< >Decrease/Increase column width (all columns), .Decrease/Increase column width (current column)- +Decrease/Increase column gapsSort the table by the current column (ascending)SSort the table by the current column (descending)a‘Natural Sort’ the table (ascending)A‘Natural Sort’ the table (descending)#Sort numerically by the current column (ascending)@Sort numerically by the current column (descending)rReload file/data. Also resets sort orderyYank cell contents to the clipboard
(requires xsel or xclip)[num]cToggle variable column width mode (mode/max),
or set width to [num][num]CMaximize current column, or set width to [num][num][Skip to (nth) change in row value (backward)[num]]Skip to (nth) change in row value (forward)[num]{Skip to (nth) change in column value (backward)[num]}Skip to (nth) change in column value (forward)