Examples
The package includes runnable examples under lazy_cuh.examples. Their
metadata lives in lazy_cuh.examples.EXAMPLES so scripts, flake apps, and docs
can stay aligned as new examples are added.
The easiest way to run the main demo from the repository is:
uv run lazy-cuh-demoDirect module execution also works:
uv run python -m lazy_cuh.examples.demoThe Nix app is available too:
nix run .#demoThe demo app exercises panel titles, shell focus, contextual keybars, list widgets, tree widgets, relative line numbers, and item highlight/selection messages.
Focused Examples
Section titled “Focused Examples”Focused examples isolate one behavior at a time. They are useful when testing API choices without changing the main demo.
nix run .#example-text-wrapnix run .#example-help-modalnix run .#example-help-keybarnix run .#example-optionsEquivalent Python entry points are available after installing the package:
uv run lazy-cuh-example-text-wrapuv run lazy-cuh-example-help-modaluv run lazy-cuh-example-help-keybaruv run lazy-cuh-example-optionsDirect module execution works too:
uv run python -m lazy_cuh.examples.text_wrapuv run python -m lazy_cuh.examples.help_modaluv run python -m lazy_cuh.examples.help_keybaruv run python -m lazy_cuh.examples.optionsexample-text-wrapshowsTextViewSpec.widthwithTRUNCATE,MULTILINE, andWRAPside by side.example-help-modalbinds?to an info modal containing keybindings.example-help-keybarbinds the same key to expanded keybar rows. Keeping both examples makes the different help presentation styles easy to compare.example-optionsshows editable option rows backed by typed input modal parsing and validation.