grass-editor 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mukund Jha
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,115 @@
1
+ Metadata-Version: 2.4
2
+ Name: grass-editor
3
+ Version: 0.1.0
4
+ Summary: A calm, zero-config terminal editor — beautiful by default, hackable in an afternoon.
5
+ Author: Mukund Jha
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/mukundzha/grass
8
+ Project-URL: Repository, https://github.com/mukundzha/grass
9
+ Project-URL: Issues, https://github.com/mukundzha/grass/issues
10
+ Keywords: editor,terminal,tui,curses,text-editor,cli
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Environment :: Console
13
+ Classifier: Environment :: Console :: Curses
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: POSIX
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Topic :: Text Editors
19
+ Classifier: Topic :: Text Editors :: Text Processing
20
+ Requires-Python: >=3.8
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: pygments>=2.6
24
+ Dynamic: license-file
25
+
26
+ # Grass
27
+
28
+ A minimal, beautiful, zero-config terminal code editor.
29
+
30
+ No modes. No config files. Just type.
31
+
32
+ ## Install
33
+
34
+ ```bash
35
+ pip install grass-editor
36
+ ```
37
+
38
+ On Windows, install curses support first:
39
+
40
+ ```bash
41
+ pip install windows-curses
42
+ ```
43
+
44
+ ## Run
45
+
46
+ ```bash
47
+ grass hello.py
48
+ ```
49
+
50
+ Or without installing:
51
+
52
+ ```bash
53
+ python -m grass hello.py
54
+ ```
55
+
56
+ Check the identity:
57
+
58
+ ```bash
59
+ grass --version
60
+ ```
61
+
62
+ ## Theme
63
+
64
+ Grass ships with one hand-tuned theme: **Meadow**.
65
+
66
+ A calm, forest-inspired dark palette — warm parchment text, sage-green
67
+ keywords, golden function names, aqua class names, and a layered
68
+ forest-dark status bar. Comments and docstrings sit quietly in muted
69
+ green-gray so code reads like a clearing at dusk.
70
+
71
+ - A two-tone wordmark splash greets you on launch — meadow green above,
72
+ sage shadow below — over the line `❧ a calm terminal editor`, signed
73
+ `v0.1.0 · Meadow`, and fades the moment you type.
74
+ - The status bar keeps the file name on the left and live line,column
75
+ position on the right.
76
+ - An amber dot beside the file name marks unsaved changes, then
77
+ disappears the moment you save.
78
+ - Your terminal tab lives and breathes with you: `grass · file.py`,
79
+ gaining a ` •` while there are unsaved changes.
80
+ - Feedback speaks in color: saves flash leaf green, problems turn
81
+ warm red.
82
+ - A floating scrollbar on the right edge tracks your place in the file.
83
+ - The cursor line glows softly; the gutter stays a shade darker.
84
+ - Search matches glow olive-green, and the match you are on turns warm gold.
85
+ - Prompts sit behind a green `❯` marker.
86
+
87
+ Meadow assumes a dark terminal with 256 colors. Terminals with only
88
+ basic colors fall back gracefully.
89
+
90
+ ## Keys
91
+
92
+ | Key | Action |
93
+ | --- | --- |
94
+ | type | edit |
95
+ | arrows, Home, End, PageUp, PageDown | move |
96
+ | Enter | new line, with auto-indent |
97
+ | Tab | insert 4 spaces |
98
+ | Backspace, Delete | delete |
99
+ | Ctrl-F | find (jumps to matches as you type) |
100
+ | Ctrl-P | open a file by fuzzy search |
101
+ | Ctrl-K | cut line |
102
+ | Ctrl-U | paste line |
103
+ | Ctrl-S | save |
104
+ | Ctrl-Z | undo |
105
+ | Ctrl-R | redo |
106
+ | Ctrl-Q | quit |
107
+
108
+ ## Notes
109
+
110
+ - Grass is always in typing mode, like nano.
111
+ - A file without a trailing newline stays that way, and the status bar says `no newline`.
112
+ - The theme is designed for dark terminal backgrounds.
113
+ - Tabs in opened files are converted to 4 spaces.
114
+ - Large files re-highlight fully on every edit; normal files stay fast.
115
+ - Wide characters (CJK) and long wrapped lines are not fully supported yet.
@@ -0,0 +1,90 @@
1
+ # Grass
2
+
3
+ A minimal, beautiful, zero-config terminal code editor.
4
+
5
+ No modes. No config files. Just type.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ pip install grass-editor
11
+ ```
12
+
13
+ On Windows, install curses support first:
14
+
15
+ ```bash
16
+ pip install windows-curses
17
+ ```
18
+
19
+ ## Run
20
+
21
+ ```bash
22
+ grass hello.py
23
+ ```
24
+
25
+ Or without installing:
26
+
27
+ ```bash
28
+ python -m grass hello.py
29
+ ```
30
+
31
+ Check the identity:
32
+
33
+ ```bash
34
+ grass --version
35
+ ```
36
+
37
+ ## Theme
38
+
39
+ Grass ships with one hand-tuned theme: **Meadow**.
40
+
41
+ A calm, forest-inspired dark palette — warm parchment text, sage-green
42
+ keywords, golden function names, aqua class names, and a layered
43
+ forest-dark status bar. Comments and docstrings sit quietly in muted
44
+ green-gray so code reads like a clearing at dusk.
45
+
46
+ - A two-tone wordmark splash greets you on launch — meadow green above,
47
+ sage shadow below — over the line `❧ a calm terminal editor`, signed
48
+ `v0.1.0 · Meadow`, and fades the moment you type.
49
+ - The status bar keeps the file name on the left and live line,column
50
+ position on the right.
51
+ - An amber dot beside the file name marks unsaved changes, then
52
+ disappears the moment you save.
53
+ - Your terminal tab lives and breathes with you: `grass · file.py`,
54
+ gaining a ` •` while there are unsaved changes.
55
+ - Feedback speaks in color: saves flash leaf green, problems turn
56
+ warm red.
57
+ - A floating scrollbar on the right edge tracks your place in the file.
58
+ - The cursor line glows softly; the gutter stays a shade darker.
59
+ - Search matches glow olive-green, and the match you are on turns warm gold.
60
+ - Prompts sit behind a green `❯` marker.
61
+
62
+ Meadow assumes a dark terminal with 256 colors. Terminals with only
63
+ basic colors fall back gracefully.
64
+
65
+ ## Keys
66
+
67
+ | Key | Action |
68
+ | --- | --- |
69
+ | type | edit |
70
+ | arrows, Home, End, PageUp, PageDown | move |
71
+ | Enter | new line, with auto-indent |
72
+ | Tab | insert 4 spaces |
73
+ | Backspace, Delete | delete |
74
+ | Ctrl-F | find (jumps to matches as you type) |
75
+ | Ctrl-P | open a file by fuzzy search |
76
+ | Ctrl-K | cut line |
77
+ | Ctrl-U | paste line |
78
+ | Ctrl-S | save |
79
+ | Ctrl-Z | undo |
80
+ | Ctrl-R | redo |
81
+ | Ctrl-Q | quit |
82
+
83
+ ## Notes
84
+
85
+ - Grass is always in typing mode, like nano.
86
+ - A file without a trailing newline stays that way, and the status bar says `no newline`.
87
+ - The theme is designed for dark terminal backgrounds.
88
+ - Tabs in opened files are converted to 4 spaces.
89
+ - Large files re-highlight fully on every edit; normal files stay fast.
90
+ - Wide characters (CJK) and long wrapped lines are not fully supported yet.
@@ -0,0 +1 @@
1
+ VERSION = "0.1.0"
@@ -0,0 +1,3 @@
1
+ from grass.main import main
2
+
3
+ main()