#text #editor #terminal #competitive #modal

bin+lib accepted

A text editor to be ACCEPTED

21 releases

✓ Uses Rust 2018 edition

0.1.20 Jan 17, 2019
0.1.19 Jan 6, 2019
0.1.18 Dec 8, 2018
0.1.16 Nov 15, 2018
0.1.11 Sep 30, 2018

#4 in Text editors

Download history 1/week @ 2018-10-06 361/week @ 2018-10-13 34/week @ 2018-10-20 124/week @ 2018-10-27 84/week @ 2018-11-03 71/week @ 2018-11-10 22/week @ 2018-11-17 83/week @ 2018-11-24 97/week @ 2018-12-01 51/week @ 2018-12-08 27/week @ 2018-12-15 60/week @ 2018-12-22 13/week @ 2018-12-29 58/week @ 2019-01-05 29/week @ 2019-01-12

251 downloads per month

MIT license

152KB
4.5K SLoC

Accepted

crates.io Build Status

A terminal text editor to be ACCEPTED.

Accepted screenshot

Description

A modal text editor for competitive programmer written with Rust.

Currently Accepted supports Rust and C++.

Features

  • Autoformat with Rustfmt / ClangFormat
  • Completion with RLS / Clangd
  • Auto compile and show compiler messages
  • Easy to test a single a code
  • VScode style snippet support
  • Mouse support

Install

You need nightly Rust.

$ cargo install accepted

For Rust users

Install rust components.

$ rustup component add rls-preview
$ rustup component add rust-src
$ rustup component add rustfmt-preview

For C++ users

Install clang, clang-format and clangd.

Usage

$ acc [file]

TODO: More precisely.

Basic

Many commands of acc is same as Vim.

i, I, a, A, o, O to insert mode and Esc to return.

hjkl, w, e, b to move cursor.

y, d, c, v, V works like vim

Space Prefix

Some of commands can run with space as a prefix.

SPACE -> q to Quit.

SPACE -> s to Save.

SPACE -> a to Save As.

SPACE -> y to Copy all to clipboard

SPACE -> SPACE to Rustfmt.

SPACE -> t to compile and run with clipboard input.

SPACE -> T to compile (optimized) and run with clipboard input.

SPACE -> q to Quit.

Snippet support

This supports vscode style snippet.

You can configure by toml file placed in [config_dir]/acc/init.toml

config_dir is defined in here.

The only configurable thing is snippet

snippet = ["path_to_snippet_file"]

Contribution

Any kind of contribution including feature request is welcome !!

Dependencies

~10MB
~184K SLoC