alma 0.1.1

A Bevy-native modal text editor with Vim-style navigation.
Documentation
//! Buffer ownership systems.

mod command;
mod edit;
mod error;
mod lifecycle;
mod plugin;
mod spawn;
mod status;
#[cfg(test)]
mod tests;

use crate::{buffer::BufferFile, text_stream::TextByteStream};
use bevy::prelude::Resource;

pub use plugin::BufferPlugin;

/// Initial editor buffer contents loaded before ECS entity ownership begins.
#[derive(Clone, Debug, Resource)]
pub struct InitialEditorBuffer {
    /// Validated UTF-8 stream for the first buffer entity.
    pub stream: TextByteStream,
    /// Persistence metadata for the first buffer entity.
    pub file: BufferFile,
}