Expand description
Core library for the Alma Bevy application.
Re-exports§
pub use text_stream::TextByteStream;pub use text_stream::TextStreamError;
Modules§
- text_
stream - UTF-8 byte-stream storage and editing. Validated UTF-8 byte stream storage and CRUD operations.
Structs§
- Action
Context - State borrowed by one action dispatch.
- Action
Dispatcher - Action dispatcher.
- Buffer
Edit Report - Revision metadata returned after a successful buffer edit.
- Buffer
File - Buffer metadata for an optional file on disk.
- Char
Search - A Vim
f/F/t/Tcharacter-search motion. - Count
- Non-zero Vim count.
- Counted
- A parsed item with Vim’s generic count prefix.
- Editor
Backend Adapter - Adapter contract for editor rendering/editing backends.
- Editor
Backend Snapshot - Snapshot of the editor state last pushed into the visual backend.
- Filesystem
Config - Filesystem policy used by editor file I/O.
- KeySequence
- A normalized key sequence.
- Keymap
- One typed key mapping.
- Keymap
Set - A collection of keymaps.
- Leader
Binding - A typed leader key binding.
- Leader
Config - Configurable leader behavior.
- Leader
State - Normal-mode leader key state.
- ModeSet
- Modes where a keymap applies.
- Normal
Command Context - Normal-command context.
- Normal
Grammar - Stateful normal-mode grammar parser.
- Normal
State - Normal-mode controller.
- Search
Query - User-provided literal search query.
- Search
State - Current search command state.
- VimCommand
State - Command-line state for Vim
:commands. - VimCommand
Text - User-provided text following a Vim
:prompt. - VimConfig
- Vim configuration resource.
- VimCursor
- Cursor state for navigating the managed text stream.
- VimSelection
- Character-wise visual selection anchored at a byte index.
- VimSelection
State - Current visual selection anchor, if visual mode is active.
- VimStatus
Line - Bottom status line state shared by Vim command handlers and the renderer.
- Visual
Command Context - Visual-command context.
- Visual
State - Visual-mode controller.
Enums§
- Buffer
Edit - A synchronous mutation against the authoritative text buffer.
- Buffer
Open Error - Errors that can occur while opening the initial buffer.
- Buffer
Write Error - Errors that can occur while writing the current buffer.
- Builtin
Action - Builtin actions that require application state beyond pure command execution.
- Char
Search Direction - Character-search motion direction.
- Char
Search Placement - Character-search landing behavior.
- Editor
Sync Report - Result of one editor/backend synchronization step.
- KeyAction
- A typed key action.
- KeyToken
- A normalized key token consumed by Vim grammar and keymaps.
- Line
Address - Line-address motion targets.
- Mode
Switch - Supported mode switches from normal mode.
- Motion
- Supported Vim motions.
- Normal
Command - A typed normal-mode command emitted by the grammar.
- Normal
Grammar Output - Output from feeding one token to the normal grammar.
- Operator
- Supported operator prefixes.
- Page
Direction - Page motion direction.
- Paragraph
Direction - Paragraph motion direction.
- Quit
Policy - Quit behavior for commands that may discard changes.
- Search
Case Sensitivity - Case policy for a submitted search query.
- Search
Direction - Direction for literal search.
- Search
Outcome - Outcome from submitting or repeating a search.
- Viewport
Position - Supported cursor-relative viewport positions.
- VimAction
- Editor action resolved from grammar, maps, or leader bindings.
- VimCommand
- Supported Vim editor commands.
- VimError
- Vim-compatible errors shown on the command/status line.
- VimMode
- High-level editing mode for the Vim controller.
- VimStatus
Message - A bottom-line Vim status message.
- Visual
Grammar Output - Visual grammar output.
- Visual
Mode - Supported visual selection variants.
- Word
Kind - Vim word families.
- Write
Quit Policy - Write behavior for commands that write and quit.
Constants§
- DEFAULT_
MAX_ FILE_ BYTES - Maximum file size accepted by default when opening editor buffers.
Functions§
- apply_
search_ outcome - Applies a search outcome.
- run
- Runs the Alma Bevy application.
- run_
headless - Runs the Alma editor dataflow without windowing or rendering plugins.
Type Aliases§
- VimSearch
State - Bevy resource wrapper for Vim search state.