All Projects → hatoo → Accepted

hatoo / Accepted

Licence: mit
A terminal text editor to be ACCEPTED

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Accepted

Markra
A Markdown-to-JIRA syntax editor.
Stars: ✭ 64 (-29.67%)
Mutual labels:  text-editor
Subethaedit
General purpose plain text editor for macOS. Widely known for its live collaboration feature.
Stars: ✭ 1,183 (+1200%)
Mutual labels:  text-editor
E Maxx Eng
Translation of http://e-maxx.ru into English
Stars: ✭ 1,238 (+1260.44%)
Mutual labels:  competitive-programming
Massren
massren - easily rename multiple files using your text editor
Stars: ✭ 1,133 (+1145.05%)
Mutual labels:  text-editor
Usaco
General Resources for Competitive Programming
Stars: ✭ 1,152 (+1165.93%)
Mutual labels:  competitive-programming
.emacs.d
My emacs configuration
Stars: ✭ 76 (-16.48%)
Mutual labels:  text-editor
Yawysiwygee
Yet another what-you-see-is-what-you-get equation editor
Stars: ✭ 60 (-34.07%)
Mutual labels:  text-editor
Gnvim
GUI for neovim, without any web bloat
Stars: ✭ 1,271 (+1296.7%)
Mutual labels:  text-editor
Godot Engine.file Editor
A Godot Engine addon that adds a File Editor for multiple file types editing. Create and Write plain text files, configuration files and csv files with custom visualizers and previews. Also supports file translations!
Stars: ✭ 70 (-23.08%)
Mutual labels:  text-editor
Code
Solutions for UVa Online Judge and Programming Challeges. Sample code in my Book.
Stars: ✭ 79 (-13.19%)
Mutual labels:  competitive-programming
Icie
Competitive programming IDE-as-a-VS-Code-plugin
Stars: ✭ 65 (-28.57%)
Mutual labels:  competitive-programming
Toaru Nih
NOTICE: The ToaruOS-NIH Project has been MERGED UPSTREAM. This repository is now archived.
Stars: ✭ 66 (-27.47%)
Mutual labels:  text-editor
Competitive Programming Questions
This repo is open for all. Add your favourite competitive programming questions along with the solution.
Stars: ✭ 77 (-15.38%)
Mutual labels:  competitive-programming
Avalonedit
The WPF-based text editor component used in SharpDevelop
Stars: ✭ 1,127 (+1138.46%)
Mutual labels:  text-editor
Advanced Data Structures With Python
Python implementations of Advanced Data Structures and Algorithms. With each code, there is an associated markdown for explanation and applications of that algorithm or data structure.
Stars: ✭ 82 (-9.89%)
Mutual labels:  competitive-programming
Kactl
KTH Algorithm Competition Template Library (... eller KTHs AC-tillverkande lapp)
Stars: ✭ 1,106 (+1115.38%)
Mutual labels:  competitive-programming
Technical Interview Guide
My learning material for technical interviews!
Stars: ✭ 76 (-16.48%)
Mutual labels:  competitive-programming
Mazu Editor
a minimalist text editor with syntax highlight, copy/paste, and search
Stars: ✭ 88 (-3.3%)
Mutual labels:  text-editor
Xi Qt
A Qt front-end for xi-editor. Experimental (WIP)
Stars: ✭ 85 (-6.59%)
Mutual labels:  text-editor
Cp
A repository to backup my competitive programming source code since 2013
Stars: ✭ 79 (-13.19%)
Mutual labels:  competitive-programming

Accepted

crates.io Build Status Join the chat at https://gitter.im/Accepted-text-editor/community dependency status tokei

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

  • Preconfigured for Rust and C++
  • Autoformat with Rustfmt / ClangFormat / or specify with configuration
  • Completion with TabNine / RLS / Clangd / or Other LSP servers
  • Auto compile and show compiler messages (Supports rustc / gcc / clang)
  • Easy to test a single a code
  • VScode style snippet support
  • Mouse support
  • rmate protocol

Install

You need nightly Rust.

$ cargo install accepted

If you want to install HEAD version, you can install from git to

$ cargo install -f --git=https://github.com/hatoo/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.

SPACE -> r to Start rmate server

Configuration

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

You can open config file via $ acc --config easily.

config_dir is defined in here.

Below is default configure. You can override with your own configure.

# Configure to defaults
[file_default]
# Put spaces instead of '\t' when tab key is pressed
hard_tab = false
indent_width = 4
# Set true if you are running in legacy terminal which has no true color
ansi_color = false
# Command for TabNine
tabnine = ["TabNine"]
# Set theme
# You can set either theme name which is bundled by `syntect` and file path for .tmTheme
theme = "Solarized (dark)"

# Configure for *.rs files
[file.rs]
# Setting compiler and its type.
compiler = { command=["rustc", "$FILE_PATH", "--error-format=json"], type="rustc", optimize_option=["-O"] }
# Setting LSP server command
lsp = ["rls"]
# Setting formatter command
formatter = ["rustfmt"]
# Command for testing
test_command = ["./$FILE_STEM"]

[file.cpp]
# Configure for *.cpp files
# Respect clang-format
indent_width = 2
compiler = { command=["clang", "$FILE_PATH", "-o", "$FILE_STEM"], type="gcc", optimize_option=["-O2"] }
lsp = ["clangd"]
formatter = ["clang-format"]
test_command = ["./$FILE_STEM"]

[file.c]
# Same as cpp
indent_width = 2
compiler = { command=["clang", "$FILE_PATH", "-o", "$FILE_STEM"], type="gcc", optimize_option=["-O2"] }
lsp = ["clangd"]
formatter = ["clang-format"]
test_command = ["./$FILE_STEM"]

[file.rb]
indent_width = 2

[file.go]
formatter = ["gofmt"]
hard_tab = true

Contribution

Any kind of contribution including feature request is welcome!!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].