Skip to main content

Crate nanorust

Crate nanorust 

Source
Expand description

§Nano Rust Editor

A terminal-based text editor written in Rust that emulates the functionality and ease-of-use of GNU nano.

§Features

  • Full nano-compatible keybindings
  • Syntax highlighting for multiple languages
  • Undo/redo support
  • Search and replace functionality
  • Cut, copy, and paste operations
  • Auto-indent and text formatting
  • UTF-8 support

§Example

use nanorust::{Editor, Config};

fn main() -> nanorust::Result<()> {
    // Create editor with default configuration
    let mut editor = Editor::new()?;
     
    // Run the editor
    editor.run()?;
     
    Ok(())
}

Re-exports§

pub use error::EditorError;
pub use error::Result;
pub use editor::Editor;
pub use config::Config;

Modules§

buffer
commands
config
Configuration module for the nano rust editor.
display
edit
editor
error
Error types for the nano rust editor.
file
input
search
syntax
terminal