Introduces desktop-notify.ts which dispatches completion/ask notifications to org.freedesktop.Notifications through notify-send (libnotify) and falls back to gdbus when libnotify is absent. TerminalInfo.sendNotification fans out to D-Bus whenever the chosen notifyProtocol is BEL and DBUS_SESSION_BUS_ADDRESS is set on Linux, so VTE-family hosts (Ptyxis, GNOME Terminal, Tilix) plus Alacritty and bare xterm finally surface toasts they cannot deliver in-band. Delivery is fire-and-forget, skipped for terminals with their own notification UI (VS Code, Warp), and gated by PI_NO_DESKTOP_NOTIFY=1. The BEL emission is preserved for tmux monitor-bell, X11 urgency hints, and audible-bell handlers. Fixes #3685
52 lines
1.6 KiB
TypeScript
52 lines
1.6 KiB
TypeScript
// Core TUI interfaces and classes
|
|
|
|
// Autocomplete support
|
|
export * from "./autocomplete";
|
|
// Components
|
|
export * from "./components/box";
|
|
export * from "./components/cancellable-loader";
|
|
export * from "./components/editor";
|
|
export * from "./components/image";
|
|
export * from "./components/input";
|
|
export * from "./components/loader";
|
|
export * from "./components/markdown";
|
|
export * from "./components/scroll-view";
|
|
export * from "./components/select-list";
|
|
export * from "./components/settings-list";
|
|
export * from "./components/spacer";
|
|
export * from "./components/tab-bar";
|
|
export * from "./components/text";
|
|
export * from "./components/truncated-text";
|
|
// DECCARA rectangular-SGR background-fill optimizer
|
|
export * from "./deccara";
|
|
// Desktop notifications via D-Bus (Linux freedesktop notifications)
|
|
export * from "./desktop-notify";
|
|
// Editor component interface (for custom editors)
|
|
export type * from "./editor-component";
|
|
// Fuzzy matching
|
|
export * from "./fuzzy";
|
|
// Keybindings
|
|
export * from "./keybindings";
|
|
// Kitty keyboard protocol helpers
|
|
export * from "./keys";
|
|
// Kitty graphics: Unicode placeholders
|
|
export * from "./kitty-graphics";
|
|
// LaTeX → Unicode/ANSI math rendering
|
|
export * from "./latex-block";
|
|
export * from "./latex-to-unicode";
|
|
// SGR mouse report parsing
|
|
export * from "./mouse";
|
|
// Mermaid diagram support
|
|
// Input buffering for batch splitting
|
|
export * from "./stdin-buffer";
|
|
export type * from "./symbols";
|
|
// Terminal interface and implementations
|
|
export * from "./terminal";
|
|
// Terminal image support
|
|
export * from "./terminal-capabilities";
|
|
// TTY ID
|
|
export * from "./ttyid";
|
|
export * from "./tui";
|
|
// Utilities
|
|
export * from "./utils";
|