ghosttytheme 0.2.0__tar.gz → 0.2.1__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.
- ghosttytheme-0.2.1/LICENSE +21 -0
- {ghosttytheme-0.2.0 → ghosttytheme-0.2.1}/PKG-INFO +9 -1
- {ghosttytheme-0.2.0 → ghosttytheme-0.2.1}/README.md +5 -0
- {ghosttytheme-0.2.0 → ghosttytheme-0.2.1}/ghosttytheme.egg-info/PKG-INFO +9 -1
- {ghosttytheme-0.2.0 → ghosttytheme-0.2.1}/ghosttytheme.egg-info/SOURCES.txt +1 -0
- {ghosttytheme-0.2.0 → ghosttytheme-0.2.1}/ghosttytheme.py +27 -23
- {ghosttytheme-0.2.0 → ghosttytheme-0.2.1}/pyproject.toml +2 -1
- {ghosttytheme-0.2.0 → ghosttytheme-0.2.1}/tests/test_gtheme.py +14 -0
- {ghosttytheme-0.2.0 → ghosttytheme-0.2.1}/ghosttytheme.egg-info/dependency_links.txt +0 -0
- {ghosttytheme-0.2.0 → ghosttytheme-0.2.1}/ghosttytheme.egg-info/entry_points.txt +0 -0
- {ghosttytheme-0.2.0 → ghosttytheme-0.2.1}/ghosttytheme.egg-info/top_level.txt +0 -0
- {ghosttytheme-0.2.0 → ghosttytheme-0.2.1}/setup.cfg +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 hypercryptoman
|
|
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.
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ghosttytheme
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Live Ghostty theme picker for macOS
|
|
5
5
|
Project-URL: Homepage, https://hypercryptoman.github.io/gtheme/
|
|
6
6
|
Project-URL: Repository, https://github.com/hypercryptoman/gtheme
|
|
7
7
|
Project-URL: Issues, https://github.com/hypercryptoman/gtheme/issues
|
|
8
8
|
Classifier: Environment :: Console
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
10
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
10
11
|
Classifier: Programming Language :: Python :: 3
|
|
11
12
|
Requires-Python: >=3.8
|
|
12
13
|
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Dynamic: license-file
|
|
13
16
|
|
|
14
17
|
# ghosttytheme | Live Ghostty theme picker for macOS
|
|
15
18
|
|
|
@@ -51,6 +54,7 @@ Top 50 follows the gallery’s curated order and shows themes available in your
|
|
|
51
54
|
| ↑ / ↓ or `k` / `j` | Move one theme and preview it |
|
|
52
55
|
| Tab / Shift+Tab | Switch to the next or previous list |
|
|
53
56
|
| Page Up / Page Down | Jump up or down by ten themes |
|
|
57
|
+
| Home / End | Jump to the first or last theme |
|
|
54
58
|
| `/` | Start a case-insensitive name filter |
|
|
55
59
|
| Backspace | Remove a character while editing the filter |
|
|
56
60
|
| Enter while filtering | Finish typing and keep the filtered results |
|
|
@@ -96,3 +100,7 @@ The picker displays sample terminal output to show how each theme colors text.
|
|
|
96
100
|
**Filtering by `nord` with Nord highlighted**
|
|
97
101
|
|
|
98
102
|

|
|
103
|
+
|
|
104
|
+
## License
|
|
105
|
+
|
|
106
|
+
MIT. See [LICENSE](LICENSE).
|
|
@@ -38,6 +38,7 @@ Top 50 follows the gallery’s curated order and shows themes available in your
|
|
|
38
38
|
| ↑ / ↓ or `k` / `j` | Move one theme and preview it |
|
|
39
39
|
| Tab / Shift+Tab | Switch to the next or previous list |
|
|
40
40
|
| Page Up / Page Down | Jump up or down by ten themes |
|
|
41
|
+
| Home / End | Jump to the first or last theme |
|
|
41
42
|
| `/` | Start a case-insensitive name filter |
|
|
42
43
|
| Backspace | Remove a character while editing the filter |
|
|
43
44
|
| Enter while filtering | Finish typing and keep the filtered results |
|
|
@@ -83,3 +84,7 @@ The picker displays sample terminal output to show how each theme colors text.
|
|
|
83
84
|
**Filtering by `nord` with Nord highlighted**
|
|
84
85
|
|
|
85
86
|

|
|
87
|
+
|
|
88
|
+
## License
|
|
89
|
+
|
|
90
|
+
MIT. See [LICENSE](LICENSE).
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ghosttytheme
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Live Ghostty theme picker for macOS
|
|
5
5
|
Project-URL: Homepage, https://hypercryptoman.github.io/gtheme/
|
|
6
6
|
Project-URL: Repository, https://github.com/hypercryptoman/gtheme
|
|
7
7
|
Project-URL: Issues, https://github.com/hypercryptoman/gtheme/issues
|
|
8
8
|
Classifier: Environment :: Console
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
10
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
10
11
|
Classifier: Programming Language :: Python :: 3
|
|
11
12
|
Requires-Python: >=3.8
|
|
12
13
|
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Dynamic: license-file
|
|
13
16
|
|
|
14
17
|
# ghosttytheme | Live Ghostty theme picker for macOS
|
|
15
18
|
|
|
@@ -51,6 +54,7 @@ Top 50 follows the gallery’s curated order and shows themes available in your
|
|
|
51
54
|
| ↑ / ↓ or `k` / `j` | Move one theme and preview it |
|
|
52
55
|
| Tab / Shift+Tab | Switch to the next or previous list |
|
|
53
56
|
| Page Up / Page Down | Jump up or down by ten themes |
|
|
57
|
+
| Home / End | Jump to the first or last theme |
|
|
54
58
|
| `/` | Start a case-insensitive name filter |
|
|
55
59
|
| Backspace | Remove a character while editing the filter |
|
|
56
60
|
| Enter while filtering | Finish typing and keep the filtered results |
|
|
@@ -96,3 +100,7 @@ The picker displays sample terminal output to show how each theme colors text.
|
|
|
96
100
|
**Filtering by `nord` with Nord highlighted**
|
|
97
101
|
|
|
98
102
|

|
|
103
|
+
|
|
104
|
+
## License
|
|
105
|
+
|
|
106
|
+
MIT. See [LICENSE](LICENSE).
|
|
@@ -42,32 +42,31 @@ TOP_THEMES = (
|
|
|
42
42
|
PREFERRED_THEMES = [
|
|
43
43
|
'Catppuccin Mocha', 'Catppuccin Macchiato', 'Catppuccin Frappe', 'Catppuccin Latte',
|
|
44
44
|
'TokyoNight', 'TokyoNight Storm', 'TokyoNight Night', 'Dracula', 'Gruvbox Dark',
|
|
45
|
-
'Gruvbox Dark Hard', 'Nord', 'Rose Pine', 'Rose Pine Moon', 'Rose Pine Dawn',
|
|
46
|
-
'Kanagawa
|
|
45
|
+
'Gruvbox Dark Hard', 'Nord', 'Rose Pine', 'Rose Pine Moon', 'Rose Pine Dawn', 'Kanagawa Wave',
|
|
46
|
+
'Kanagawa Dragon', 'Everforest Dark Hard', 'Everforest Light Med',
|
|
47
47
|
'Solarized Dark Higher Contrast', 'One Half Dark', 'Atom One Dark', 'Nightfox', 'Carbonfox',
|
|
48
|
-
'
|
|
49
|
-
'Melange Dark', '
|
|
48
|
+
'GitHub Dark', 'Monokai Pro', 'Ayu Mirage', 'Zenburn', 'Synthwave', 'Poimandres',
|
|
49
|
+
'Melange Dark', 'GitHub Light Default', 'GitHub Dark Default', 'GitHub Dark Dimmed',
|
|
50
50
|
'Ayu Light', 'Material Darker', 'Material Ocean', 'Dawnfox', 'Dayfox', 'Duskfox', 'Nordfox',
|
|
51
51
|
'Terafox', 'Night Owl', 'Light Owl', 'Cobalt2', 'Horizon', 'Sonokai', 'Moonfly',
|
|
52
52
|
'Iceberg Dark', 'Iceberg Light', 'Tomorrow Night', 'Tomorrow Night Bright',
|
|
53
|
-
'Tomorrow Night Burns', 'Tomorrow Night Eighties', 'Tomorrow', 'Snazzy',
|
|
54
|
-
'Monokai
|
|
55
|
-
'
|
|
56
|
-
'Gruvbox Material
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'Everforest Dark Med', 'Farmhouse Light', 'Forged in Steel', 'GitHub Dark', 'Glacier',
|
|
53
|
+
'Tomorrow Night Burns', 'Tomorrow Night Eighties', 'Tomorrow', 'Snazzy', 'Monokai Remastered',
|
|
54
|
+
'Monokai Soda', 'Monokai Vivid', 'Selenized Dark', 'Selenized Light', 'Selenized Black',
|
|
55
|
+
'Gruvbox Light', 'Gruvbox Light Hard', 'Gruvbox Material', 'Gruvbox Material Dark',
|
|
56
|
+
'Gruvbox Material Light', 'Kanagawa Lotus', 'TokyoNight Day', 'Nord Light', 'Nord Wave',
|
|
57
|
+
'Challenger Deep', 'Cyberpunk', 'Dark Pastel', 'Darkside', 'Doom One', 'Doom Peacock',
|
|
58
|
+
'Espresso', 'Fahrenheit', 'Flat', 'Flatland', 'Framer', 'Fish Tank', 'Galaxy', 'Hardcore',
|
|
59
|
+
'Harper', 'Hurtado', 'Hybrid', 'Jackie Brown', 'Kibble', 'Laser', 'Liquid Carbon', 'Lovelace',
|
|
60
|
+
'Man Page', 'Mariana', 'Mathias', 'Medallion', 'Mirage', 'Molokai', 'Monokai Pro Machine',
|
|
61
|
+
'Monokai Pro Octagon', 'Monokai Pro Ristretto', 'Monokai Pro Spectrum', 'Neon', 'Neopolitan',
|
|
62
|
+
'Nvim Dark', 'Nvim Light', 'Obsidian', 'Ocean', 'Oceanic Next', 'One Half Light',
|
|
63
|
+
'Atom One Light', 'Onenord', 'Paraiso Dark', 'Pencil Dark', 'Pencil Light', 'Pro', 'Red Alert',
|
|
64
|
+
'Red Planet', 'Rouge 2', 'Royal', 'Seafoam Pastel', 'Seoulbones Dark', 'Shades Of Purple',
|
|
65
|
+
'Slate', 'Smyck', 'Spacedust', 'Spiderman', 'Square', 'Sundried', '0x96f', 'Abernathy',
|
|
66
|
+
'Agave Dusk', 'Apple System Colors', 'Aubade', 'base16-icy', 'Black Metal (Burzum)',
|
|
67
|
+
'Blood Moon', 'branch', 'Builtin Tango Light', 'Canyon Walnut', 'Cholla', 'CLRS',
|
|
68
|
+
'Copper Canyon', 'Cutie Pro', 'datum (dark)', 'Desert Morning', 'Django Smooth', 'Earthsong',
|
|
69
|
+
'Embark', 'Everforest Dark Med', 'Farmhouse Light', 'Forged in Steel', 'Glacier',
|
|
71
70
|
'Graveyard Shift', 'Harvest Moon', 'High Desert Snow', 'Hopscotch.256', 'IC Orange PPL',
|
|
72
71
|
'Isocon Light', 'iTerm2 Tango Light', 'Kanagawabones', 'Karma Light', 'Konsolas',
|
|
73
72
|
'Liquid Carbon Transparent', 'Matcha Zen', 'Mesa Twilight', 'Modus Operandi Deuteranopia',
|
|
@@ -401,7 +400,8 @@ def draw(rows, cols, collection, view, selected, query, typing, issue):
|
|
|
401
400
|
for index in range(start, min(count, start + room)):
|
|
402
401
|
lines.append(highlight if index == selected else " " + view[index])
|
|
403
402
|
screen = "\r\n".join(clip(line, max(1, cols - 1)) + CSI + "K" for line in lines[:rows])
|
|
404
|
-
|
|
403
|
+
# Overwrite in place, then clear below; a full-screen clear flickers on fast redraws.
|
|
404
|
+
sys.stdout.write(CSI + "H" + screen + CSI + "J")
|
|
405
405
|
sys.stdout.flush()
|
|
406
406
|
|
|
407
407
|
|
|
@@ -486,6 +486,10 @@ def pick(themes, original, explicit=False, collection="all"):
|
|
|
486
486
|
selected = max(0, selected - 10)
|
|
487
487
|
elif key == "\x1b[6~":
|
|
488
488
|
selected = min(max(0, len(view) - 1), selected + 10)
|
|
489
|
+
elif key in ("\x1b[H", "\x1bOH", "\x1b[1~", "\x1b[7~"):
|
|
490
|
+
selected = 0
|
|
491
|
+
elif key in ("\x1b[F", "\x1bOF", "\x1b[4~", "\x1b[8~"):
|
|
492
|
+
selected = max(0, len(view) - 1)
|
|
489
493
|
elif key == "/":
|
|
490
494
|
query, view, selected, typing = "", names, 0, True
|
|
491
495
|
elif key in ("\r", "\n") and current and not issue:
|
|
@@ -4,12 +4,13 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ghosttytheme"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.1"
|
|
8
8
|
description = "Live Ghostty theme picker for macOS"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
11
11
|
classifiers = [
|
|
12
12
|
"Environment :: Console",
|
|
13
|
+
"License :: OSI Approved :: MIT License",
|
|
13
14
|
"Operating System :: MacOS :: MacOS X",
|
|
14
15
|
"Programming Language :: Python :: 3",
|
|
15
16
|
]
|
|
@@ -139,6 +139,20 @@ class PickerTests(unittest.TestCase):
|
|
|
139
139
|
exited()
|
|
140
140
|
self.assertEqual(self.config.read_text(), "theme = Nord\n")
|
|
141
141
|
|
|
142
|
+
def test_home_and_end_jump_to_list_edges(self):
|
|
143
|
+
self.config.write_text("theme = Nord\n")
|
|
144
|
+
_, fd, _, read, exited = self.start_picker("--config", str(self.config))
|
|
145
|
+
read(b"themes (4)")
|
|
146
|
+
os.write(fd, b"\x1b[F")
|
|
147
|
+
read(b"4/4")
|
|
148
|
+
os.write(fd, b"\x1b[H")
|
|
149
|
+
read(b"1/4")
|
|
150
|
+
os.write(fd, b"\x1bOF")
|
|
151
|
+
read(b"4/4")
|
|
152
|
+
os.write(fd, b"q")
|
|
153
|
+
read(b"Cancelled")
|
|
154
|
+
exited()
|
|
155
|
+
|
|
142
156
|
def test_save_reports_manual_reload_when_outside_ghostty(self):
|
|
143
157
|
_, fd, _, read, exited = self.start_picker("--config", str(self.config))
|
|
144
158
|
read(b"themes (4)")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|