first pass of merging in warp (doesn't build)

This commit is contained in:
Ryan Ward
2026-07-01 16:08:58 -05:00
parent 2f64909469
commit 4770ac06b5
3662 changed files with 414574 additions and 89772 deletions
+9 -6
View File
@@ -1,14 +1,17 @@
use std::sync::Arc;
use itertools::Either;
use super::{
BindingLens, Context, CustomTag, EditableBinding, EditableBindingLens, FixedBinding, Keymap,
Keystroke, Trigger,
};
use crate::{actions::StandardAction, Action, EntityId};
use itertools::Either;
use std::{collections::HashMap, sync::Arc};
use crate::actions::StandardAction;
use crate::{Action, EntityId, EntityIdMap};
#[derive(Default)]
pub struct Matcher {
pending: HashMap<EntityId, Pending>,
pending: EntityIdMap<Pending>,
keymap: Keymap,
/// Default binding validator that should run on every binding (irrespective of the [`Context`]
/// the binding was registered against).
@@ -53,7 +56,7 @@ pub enum MatchResult {
impl Matcher {
pub fn new(keymap: Keymap) -> Self {
Self {
pending: HashMap::new(),
pending: EntityIdMap::default(),
keymap,
default_binding_validator: None,
binding_validators: vec![],
@@ -376,5 +379,5 @@ impl Matcher {
}
#[cfg(test)]
#[path = "matcher_test.rs"]
#[path = "matcher_tests.rs"]
mod tests;