Opengridview
GUI presentation of data
Install / Use
/learn @BackSlasher/OpengridviewREADME
============== Open-GridView
An application insipired by PowerShell's Out-GridView <https://technet.microsoft.com/en-us/library/hh849920.aspx>_
.
.. image:: https://cloud.githubusercontent.com/assets/7194491/18807763/73f0c676-8258-11e6-9598-46c27488ffe9.png
Implemented on Gnome using GTK
Input is passed via STDIN or via filenames in argument. Every file is assigned a window and a thread in charge of reading that file and parsing it.
Also check out my post on it: http://blog.backslasher.net/open-gridview.html
Prerequisites
Since we rely on Gtk, we need the python GTK bindings (PyGobject <https://wiki.gnome.org/action/show/Projects/PyGObject?action=show&redirect=PyGObject>_). Compiling it as a Python package is annoying, so it's better to install the Distro-provided package (e.g. in Ubuntu - python-gi)
Basic usage
Either pipe input, or supply it as files.
Default parser is autosplit (re.split) with \\s+ as separator
Change parser with --parser
Change separator where applicable using --separator
Column names are usually inferred from input. Use --headers to override.
Columns can be discarded by specifying an empty name, like --headers important,,also
Column types are usually inferred from first item in input. If overriding headers, follow a name with colons to force a specific type, like --headers col,othercol:int,thirdcol
Parsing
These different types of input formatting are currently supported:
-
autosplit(default), which usesre.splitto create different columns from every row. Default separator is\s+which is good for space-separated items.Separator can contains capturing groups for
interesting results <https://docs.python.org/2/library/re.html#re.split>_ -
csv, with configurable column separators -
line_json, where every line is considered a single JSON object (Line delimited JSON)
Items are displayed immediately when parsed
Additional features
- Clipboard support. Copies as CSV to allow easy pasting in spreadsheet software
- Simple text filtering
TODO
- act as pipeline middle (and not just terminator), meaning that you can select items and click "OK" to make it send the items to STDOUT
- Support advanced filtering (e.g. regex, specific columns)
- Support hiding and re-ordering columns
- show progress icon when stdin isn't EOF yet
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
