refactor: resolve cross-crate integration TODOs and resources discovery
Cleanup pass over items collected in docs/rewrite/INTEGRATION_TODO.md: - OSC 133 printf-q / percent decoders live once in ghostty_vt::string_encoding; ghostty-os re-exports them. - CursorStyle and clipboard codepoint map entries have one definition (ghostty-terminal); ghostty-config now depends on ghostty-terminal. - ActionKey::docs() trailing blank lines fixed at the source; cli's workaround removed (+list-actions --docs still byte-identical). - x11_color exposes names in original case; cli no longer re-parses rgb.txt. - One cgroup scope wait loop (ghostty_os::cgroup::wait_for_scope). - Flatpak passwd lookup implemented in ghostty-os via a local pty. - +version shows the rustc version captured at build time. Resources: dev builds find <workspace>/resources automatically (keeping Ghostty's sentinel-file detection and GHOSTTY_RESOURCES_DIR); scripts/gen-terminfo.sh (just terminfo) regenerates the compiled terminfo; `just install [PREFIX]` installs binary, share/ghostty, terminfo, desktop/D-Bus/systemd/metainfo files and icons. Test Plan: - cargo test for vt, os, config, input, cli - diff `+list-keybinds`, `+list-actions --docs`, `+show-config --default` against /usr/bin/ghostty
This commit is contained in:
1 parent
0c4f0ee412
commit
967e3a176d
24 files changed
+656
-513
No files matched your search
@@ -2,27 +2,10 @@
|
||||
//! for clipboard operations. When copying text to clipboard, matching
|
||||
//! codepoints will be replaced with their mapped values.
|
||||
|
||||
/// Replacement value for a codepoint range.
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum Replacement {
|
||||
/// A single replacement codepoint.
|
||||
Codepoint(u32),
|
||||
/// A UTF-8 encoded string to replace with.
|
||||
String(String),
|
||||
}
|
||||
|
||||
/// One entry of the map.
|
||||
///
|
||||
/// TODO(integration): this mirrors `terminal/formatter.zig` `CodepointMap`;
|
||||
/// replace with `ghostty_terminal::formatter::CodepointMap` once available.
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct Entry {
|
||||
/// Unicode codepoint range to replace.
|
||||
/// Asserts: range[0] <= range[1]
|
||||
pub range: [u32; 2],
|
||||
/// Replacement value for this range.
|
||||
pub replacement: Replacement,
|
||||
}
|
||||
/// One entry of the map and its replacement value. The canonical
|
||||
/// definitions live in `ghostty_terminal::formatter` (`CodepointMap`,
|
||||
/// `Replacement`), which is what the terminal formatter consumes.
|
||||
pub use ghostty_terminal::formatter::{CodepointMap as Entry, Replacement};
|
||||
|
||||
/// The list of entries.
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user