Skip to main content

foldindent - indented text viewer with folding

Project description

foldindent - indented text viewer with folding

foldindent is a terminal user interface (TUI) for viewing indented text files with the possibility to fold parts based on indentation. foldindent can view arbitrary text files.

foldindent can be seen as pager dedicated to indented text data.

Each time lines are more indented than previous lines, a foldable point is added in the UI.

Samples

Sample: indented JSON data

foldindent screenshot of indented JSON

Sample: indented python AST dump

(Source sample text generated with python3 -m ast samples/example.py)

foldindent screenshot of indented AST

Keyboard usage

  • Enter: fold/expand a node
  • Up/Down: navigate cursor one node above/below
  • ^: jump to parent node

Install

pipx install foldindent

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

foldindent-0.3.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

foldindent-0.3.0-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page