Crate sued

Crate sued 

Source
Expand description

sued - shut up editor, a vector-oriented line editor by Arsalan “Aeri” Kazmi (AeriaVelocity) (on Codeberg)

sued is a stateless vector-oriented command-based text editor written in Rust, with focus on speed, simplicity, ease of use and staying the hell out of your way. It’s inspired by more contemporary editors, such as the ed family (ed, em, ex, vi, Vim, Neovim, etc.).

Official website | Codeberg repo

For info on sued as an editor, read README.md. For info on sued as a library, read README.lib.md.

sued is free software licensed under the Apache License, Version 2.0.

For full licensing terms, read the “Legal” section of README.md.

Modules§

command
Contains the Command struct, which is used to define and execute modular commands in sued.
commands
exit_status
This module contains the ExitStatus enum, which is used to represent the exit status of a sued command.
file_buffer
This module contains the FileBuffer struct and associated implementations, which is used to represent the file buffer’s contents and current file path.
helper
Contains every function used by sued, including editing commands and helper functions, using the Command struct implememnted in command.rs
tilde_range
Defines Tilde Range Syntax parsing.

Structs§

EditorState
Encapsulates the file buffer and command registry into one state struct.

Functions§

process_command
A placeholder command to accomodate people using the old process_command function.
run_sued_command
Runs a sued command from a string, with is_repl set to false.
vecify_command
Converts a command into a Vec<&str> that run_command can operate on.