This repo houses a fork of amp with a few small extra features (checked are merged into jmacdonald's main):
-
selection::justify
command to reflow text
-
selection::justify
transparently handles indents.
-
If a non-existent file path is opened, it's created.
-
line_length_guide can be configured differently for different file types
-
Percentage through the file is displayed in the modeline.
-
Preferences may be overriden in
--command_line options
.
Some fixes:
- Adding a trailing newline no longer breaks on weird unicode.
- Text reflowing is treated as a single operation in the undo/redo chain
Some internal stuff:
- Don't depend on the
pad
crate.
And some unstable hacks:
- Nix flake packaging (unchecked not because I'm looking to merge but because I need to remind myself that most of what I did for this is, indeed, a very ugly hack).
This all uses a fork of scribe with similarly incremental additions.
Heavily inspired by Vi/Vim. Amp aims to take the core interaction model of Vim, simplify it, and bundle in the essential features required for a modern text editor.
Written with ❤️ in Rust.
Amp's internals (data structures, syntax highlighting, workspace management, etc.) have been built as a separate crate: scribe.
For a full overview, along with documentation and installation instructions, visit amp.rs.
If you have Rust >= 1.38.0 installed:
cargo install amp
You can install Amp using Homebrew:
brew install amp