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

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

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.5.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

foldindent-0.5.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file foldindent-0.5.0.tar.gz.

File metadata

  • Download URL: foldindent-0.5.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for foldindent-0.5.0.tar.gz
Algorithm Hash digest
SHA256 ae059fb1ac666327d05c39fd5e5b77f0abc8a68ebeae2afc6c418c4597f44d1d
MD5 09febd80fadff9abcd3de55d2b6684fc
BLAKE2b-256 12bf09b5dd298058202693932fee2ec9ba55ce09255ed8ae0be242fc8fa844b1

See more details on using hashes here.

File details

Details for the file foldindent-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: foldindent-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for foldindent-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23df0eb75e05aefe2d6d781dd8a367e80e0d0ceaf1e2379a0ee77cc11acc5c59
MD5 6ef4f7d69711092081cb7dc7a4ee236d
BLAKE2b-256 e2b2b040ac7672caf9ca15398481fc071ea045a37957f2a623575a27ab7793fa

See more details on using hashes here.

Supported by

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