Skip to main content

Grass

A calm, zero-config terminal code editor.

No modes. No config files. Just type.

tests PyPI

Grass demo

Why

Nano starts instantly but stays plain. Vim and Helix are powerful, but they ask you to learn an editing language first. Grass sits between them: one mode, one theme, syntax highlighting, and about 1,700 lines of Python you can read in an afternoon.

It is not a Vim replacement. No plugins, no LSP, no mouse. One file at a time, on purpose.

Install

pipx install grass-editor

No pipx? pip install grass-editor also works. On Windows, install curses support first:

pip install windows-curses
pip install grass-editor

Python 3.9 or newer.

Run

grass hello.py

With no file, grass opens the splash. grass --version prints the version.

A look

Splash Ctrl-P finder
Grass splash Grass finder

One theme, Meadow: warm off-white text, green keywords, gold functions, a dark status bar. It assumes a dark 256-color terminal; basic colors fall back.

Keys

Key Action
type edit
arrows, Home, End, PageUp, PageDown move
Enter new line, with auto-indent
Tab indent to the next tab stop
Backspace, Delete delete
Ctrl-F find as you type
Ctrl-P fuzzy file finder
Ctrl-O open by path
Ctrl-K cut line
Ctrl-U paste line
Ctrl-S save (asks for a name if new)
Ctrl-Z undo
Ctrl-R redo
Ctrl-Q quit

Notes

  • Always in typing mode, like nano.
  • Tabs are preserved and shown at 4-column stops.
  • A file without a trailing newline stays that way. The status bar says no newline.
  • Large files re-highlight fully on every edit. Normal files stay fast.
  • Wide characters (CJK) and long wrapped lines are not fully supported yet.

Development

git clone https://github.com/mukundzha/grass.git
cd grass
pip install -e .
python tests/run_tests.py

Tests are plain functions with a small custom runner. CI runs on Python 3.9 through 3.13.

License

MIT. See LICENSE.

Issues and PRs are welcome.

Metadata

Release files for grass-editor 0.1.3

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

Source distribution (sdist)

Source distribution for grass-editor 0.1.3
File Size Uploaded Provenance
grass_editor-0.1.3.tar.gz 20.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for grass-editor 0.1.3
File Interpreter ABI Platform
grass_editor-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 36.3 kB

Release files / grass_editor-0.1.3.tar.gz

Download URL grass_editor-0.1.3.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
49cf9eaea70faf28c902fcb26f87779def9df119f9a4d7c764f038e3a780992d
BLAKE2b-256 checksum
How to use checksums
9ac5ba6d9677f332816d4bc4339eb68c1db9318675a3e1197446d97059be7316
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release files / grass_editor-0.1.3-py3-none-any.whl

Download URL grass_editor-0.1.3-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c881643865f8a394eae012d27a4e676fcb7d7bd2efacbbdb0e1eecb42bbf0b08
BLAKE2b-256 checksum
How to use checksums
0b9898231dec30ded9035dd3b6a92f02fb4ecf74db51bc5d5bc30442966e07bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Security for grass-editor 0.1.3

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