chore: Improve Chat Performance (#35)
* refactor * optimistically update message list * fix * update * handle duplicate messages * update ui * refactor input * update multi line input * clean up
This commit is contained in:
11
crates/ui/src/actions.rs
Normal file
11
crates/ui/src/actions.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
use gpui::{actions, impl_internal_actions};
|
||||
use serde::Deserialize;
|
||||
|
||||
#[derive(Clone, PartialEq, Eq, Deserialize)]
|
||||
pub struct Confirm {
|
||||
/// Is confirm with secondary.
|
||||
pub secondary: bool,
|
||||
}
|
||||
|
||||
actions!(list, [Cancel, SelectPrev, SelectNext]);
|
||||
impl_internal_actions!(list, [Confirm]);
|
||||
Reference in New Issue
Block a user