Skip to main content

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

Keybindings

  • left: collapse/go to parent
  • right : expand/go to first child
  • up: go up
  • down: go down
  • enter: toggle expand/collapse
  • ^: go to parent
  • shift-left: collapse all children
  • shift-right: expand all children
  • shift-up: go to previous sibling
  • shift-down: go to next sibling
  • /: search
  • n: previous search result
  • N: next search result
  • q: quit

Metadata

Release files for foldindent 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for foldindent 0.5.0
File Size Uploaded Provenance Actions
foldindent-0.5.0.tar.gz 3.7 kB Without provenance Details for foldindent-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for foldindent 0.5.0
File Interpreter ABI Platform Actions
foldindent-0.5.0-py3-none-any.whl Python 3 none any Details for foldindent-0.5.0-py3-none-any.whl

Total release size: 8.2 kB

Release files / foldindent-0.5.0.tar.gz

Download URL foldindent-0.5.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ae059fb1ac666327d05c39fd5e5b77f0abc8a68ebeae2afc6c418c4597f44d1d
BLAKE2b-256 checksum
How to use checksums
12bf09b5dd298058202693932fee2ec9ba55ce09255ed8ae0be242fc8fa844b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / foldindent-0.5.0-py3-none-any.whl

Download URL foldindent-0.5.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23df0eb75e05aefe2d6d781dd8a367e80e0d0ceaf1e2379a0ee77cc11acc5c59
BLAKE2b-256 checksum
How to use checksums
e2b2b040ac7672caf9ca15398481fc071ea045a37957f2a623575a27ab7793fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for foldindent 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page