pub enum FifMsg {
Open,
CloseDialog,
CloseAll,
KeyInput(KeyEvent),
Nav(i32),
Submit,
ActivateAt(usize),
ToggleFocus,
ReplaceAll,
}Expand description
Vocabulario interno. El host lo wrapea en su propio Msg.
Variants§
Open
El host detectó el atajo de apertura (o un comando). Lazy-init del
state lo hace el host; apply sólo marca dialog_open = true.
CloseDialog
El user pidió cerrar el popup (Esc). Los resultados quedan en la barra inferior.
CloseAll
Cerrar todo: el host debería tirar el FifState completo.
KeyInput(KeyEvent)
Tecla rumbo al input.
Navegación dentro de la lista de resultados.
Submit
Enter: la primera vez ejecuta search; subsiguientes abren el match seleccionado.
ActivateAt(usize)
Click en una fila de la barra inferior: selecciona y abre.
ToggleFocus
Alterna el foco entre los inputs search ↔ replace (Tab).
ReplaceAll
Reemplaza el texto matcheado por replace.text() en todos los
matches actuales. Idempotente: re-leer el archivo, sustituir
case-insensitive por la query, escribir. Vacía results para
forzar nueva búsqueda si el user quiere ver el estado posterior.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FifMsg
impl RefUnwindSafe for FifMsg
impl Send for FifMsg
impl Sync for FifMsg
impl Unpin for FifMsg
impl UnsafeUnpin for FifMsg
impl UnwindSafe for FifMsg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.