fm-tui 0.2.3

FM : a file manager inspired by ranger and dired{n}{n}Config files ~/.config/fm/{n}Documentation https://github.com/qkzk/fm{n}
Documentation
use crossterm::event::Event;

use crate::{event::ActionMap, modes::DoneCopyMove};

/// Internal and terminal events.
/// Most of events are sent from the terminal emulator.
/// Here we wrap them with a few internal variants.
/// It allows us to capture all events at the same place and force some actions internally.
pub enum FmEvents {
    /// A refresh is required
    Refresh,
    /// User has saved its filenames and we can rename/create them
    BulkExecute,
    /// The first file in file queue has been copied
    FileCopied(Vec<DoneCopyMove>),
    /// Event from the terminal itself (restart, resize, key, mouse etc.)
    Term(Event),
    /// Action sent directly to be dispatched and executed
    Action(ActionMap),
    /// IPC event received from external process
    Ipc(String),
    /// Empty events. Used to:
    /// - to check if a new preview should be attached
    /// - to send a "tick" to the fuzzy matcher if it's set
    UpdateTick,
}