input: kitty keyboard protocol and hex codepoint entry

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I0f58c82752b9d7a8df35fe78f034c0be6a6a6964
This commit is contained in:
raf 2026-06-25 15:00:39 +03:00
commit e04ffc6649
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF
8 changed files with 544 additions and 15 deletions

View file

@ -87,13 +87,17 @@ impl App {
// The search prompt occupies the bottom row while search mode is active.
// Recording it in the snapshot keeps the row's damage/diff correct.
let bar_text = self.searching.then(|| {
let (n, total) = grid.search_count();
format!(
"search: {} [{n}/{total}]",
grid.search_query().unwrap_or("")
)
});
let bar_text = if let Some(hex) = &self.unicode_input {
Some(format!("unicode: U+{}", hex.to_uppercase()))
} else {
self.searching.then(|| {
let (n, total) = grid.search_count();
format!(
"search: {} [{n}/{total}]",
grid.search_query().unwrap_or("")
)
})
};
if let Some(text) = &bar_text
&& rows > 0
{