Lightweight coding agent that runs in your terminal
Rust
feat: map ^U to kill-line-to-head (#1711)
Jeremy Rosefc85f4812f8c
diff --git a/codex-rs/tui/src/bottom_pane/chat_composer.rs b/codex-rs/tui/src/bottom_pane/chat_composer.rsindex 6a1bb526ce..b15d81f8f5 100644--- a/codex-rs/tui/src/bottom_pane/chat_composer.rs+++ b/codex-rs/tui/src/bottom_pane/chat_composer.rs@@ -477,6 +477,17 @@ impl ChatComposer<'_> {}}+ if let Input {+ key: Key::Char('u'),+ ctrl: true,+ alt: false,+ ..+ } = input+ {+ self.textarea.delete_line_by_head();+ return (InputResult::None, true);+ }+// Normal input handlingself.textarea.input(input);let text_after = self.textarea.lines().join("\n");