forked from NotAShelf/beer
input: kitty keyboard protocol and hex codepoint entry
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I0f58c82752b9d7a8df35fe78f034c0be6a6a6964
This commit is contained in:
parent
5cba919c78
commit
e04ffc6649
8 changed files with 544 additions and 15 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue