zach-42aed5
zach-42aed5Closedinto main
3 commits · 17 files · +8 added · ~9 modified
Description
Add a Settings window and an AI setup prompt; autoscroll while drag-selecting
- leaf → Settings… (Cmd+,) opens a SwiftUI window (macos/Settings.swift, built by build.rs as leaf-settings next to the leaf binary) with every setting explained, in Font, Colors, Window and Terminal tabs. Changes save as you make them and apply through config hot-reload.
- The window never touches TOML itself:
leaf --settings-jsonreports the current and default settings, andleaf --settings-saveedits config.toml in place with toml_edit, keeping comments and [colors.light]/[colors.dark], and writing only non-default values. - leaf → Copy AI Setup Prompt (also a button in the window, or
leaf --ai-prompt) copies a prompt that has an AI agent interview you and write the config, with the README's configuration reference and your current file included. - Dragging a selection past the top or bottom of the grid scrolls, faster the further past.
Commits3
- a1c29e42c43b zach 19 days ago
- 0786d40ea9e7 zach 19 days ago
- ae10abe0e0f7 zach 19 days ago
Cargo.lockmodifiedView file
@@ -574,6 +574,12 @@
574574
]575575
576576
[[package]]577+
name = "itoa"578+
version = "1.0.18"579+
source = "registry+https://github.com/rust-lang/crates.io-index"580+
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"581+
582+
[[package]]577583
name = "jni"578584
version = "0.22.4"579585
source = "registry+https://github.com/rust-lang/crates.io-index"@@ -659,11 +665,16 @@
659665
"bytemuck",660666
"fontdb",661667
"libc",668+
"objc2 0.5.3",669+
"objc2-app-kit",670+
"objc2-foundation 0.2.2",662671
"parking_lot",663672
"pollster",664673
"serde",674+
"serde_json",665675
"swash",666676
"toml",677+
"toml_edit",667678
"unicode-width",668679
"vte",669680
"wgpu",@@ -1517,6 +1528,19 @@
15171528
]15181529
15191530
[[package]]1531+
name = "serde_json"1532+
version = "1.0.154"1533+
source = "registry+https://github.com/rust-lang/crates.io-index"1534+
checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"1535+
dependencies = [1536+
"itoa",1537+
"memchr",1538+
"serde",1539+
"serde_core",1540+
"zmij",1541+
]1542+
1543+
[[package]]15201544
name = "serde_spanned"15211545
version = "1.1.2"15221546
source = "registry+https://github.com/rust-lang/crates.io-index"@@ -1779,6 +1803,7 @@
17791803
"indexmap",17801804
"toml_datetime",17811805
"toml_parser",1806+
"toml_writer",17821807
"winnow",17831808
]17841809
@@ -2571,3 +2596,9 @@
25712596
"quote",25722597
"syn 2.0.119",25732598
]2599+
2600+
[[package]]2601+
name = "zmij"2602+
version = "1.0.23"2603+
source = "registry+https://github.com/rust-lang/crates.io-index"2604+
checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"Cargo.tomlmodifiedView file
Loading diff…
LICENSEaddedView file
Loading diff…
MakefilemodifiedView file
Loading diff…
README.mdmodifiedView file
Loading diff…
build.rsaddedView file
Loading diff…
macos/Settings-Info.plistaddedView file
Loading diff…
macos/Settings.swiftaddedView file
Loading diff…
shell/leaf.zshaddedView file
Loading diff…
src/config.rsmodifiedView file
Loading diff…
src/main.rsmodifiedView file
Loading diff…
src/notify.rsaddedView file
Loading diff…
src/pty.rsmodifiedView file
Loading diff…
src/renderer.rsmodifiedView file
Loading diff…
src/settings.rsaddedView file
Loading diff…
src/term.rsmodifiedView file
Loading diff…