leaf-terminal-features

leaf-terminal-featuresClosedinto main

1 commit · 9 files · +2 added · ~7 modified · Seen by zach 19 days ago

Description

Add config hot-reload, scrollback search, Cmd+click URLs, shell integration and light/dark themes

  • Config hot-reload: the config file is watched and re-applied to open windows (fonts, colors, padding, scrollback, cursor, option_as_alt). A broken file keeps the old settings and shows a notification with the parse error.
  • New windows open in the current window's directory: the OSC 7 path when it's local, else the shell process's cwd from the OS (proc_pidinfo / /proc), so it works without shell setup.
  • Scrollback search (Cmd+F): incremental, smart-case, across soft-wrapped lines; the current match is the selection; Enter/Shift+Enter or Cmd+G/Cmd+Shift+G step through matches.
  • Cmd+click opens URLs; holding Cmd underlines the one under the mouse.
  • Shell integration (OSC 133): prompt/output marks live on rows (surviving scroll and reflow); Cmd+Shift+Up/Down jump between prompts, Cmd+Shift+C copies a command's output. shell/leaf.zsh provides the hooks and is bundled into Leaf.app.
  • [colors.light] / [colors.dark] follow the system appearance; mode 2031 and CSI ? 996 n report it to programs such as Neovim.
  • Desktop notifications from OSC 9 / OSC 777, and for long commands finishing in the background (terminal.notify_after_seconds), shown while the window is unfocused.

Commits1

MakefilemodifiedView file

@@ -18,6 +18,7 @@
1818 cp target/release/leaf $(APP)/Contents/MacOS/leaf
1919 cp macos/Info.plist $(APP)/Contents/Info.plist
2020 cp macos/Leaf.icns $(APP)/Contents/Resources/Leaf.icns
21+ cp shell/leaf.zsh $(APP)/Contents/Resources/leaf.zsh
2122
2223 install: app
2324 rm -rf /Applications/Leaf.app