amp
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
pub struct Buffer {
    pub id: Option<usize>,
    data: Rc<RefCell<GapBuffer>>,|
    pub path: Option<PathBuf>,
    pub cursor: Cursor,
    history: History,
    operation_group: Option<OperationGroup>,
    pub syntax_definition: Option<SyntaxDefinition>
}

impl Buffer {
    pub fn new() -> Buffer {
 INSERT 
 amp.rs 
[ok]

A complete text editor for your terminal.

Feature Packed

Everything you need to get started without any configuration. A completely usable editor, right out of the box.

Text-based UI

Built to run inside your terminal or on a server. No heavy web-based UI. Pairs incredibly well with Alacritty and tmux.

Expressive

A modal, keyboard-driven interface inspired by Vim that makes navigating and editing text fast.

Lightweight

Written in Rust, a modern, low-level, high-performance language without garbage collection.

Features

No plug-ins, zero configuration. All the essentials included by default.

File Finder

Quickly indexes and finds files using a simple, accurate matching algorithm. Ignores git directories by default; easily configurable to your own liking, if you must.

Easy Movement

Fast, precise cursor movement without repetitive keystrokes or fancy expressions. Look where you'd like to move, and type the token. That's it.

Symbol Jump

Move to any class, struct, or method definition within the current buffer. Easily augment the default set of supported languages using the .sublime-syntax format.

Flexible Keymaps

Simple YAML-based key mappings with the ability to compose multiple built-in commands into new, custom macros.

Install