{"id":13484823,"url":"https://github.com/hatoo/Accepted","last_synced_at":"2025-03-27T16:31:24.103Z","repository":{"id":33005586,"uuid":"149392076","full_name":"hatoo/Accepted","owner":"hatoo","description":"A terminal text editor to be ACCEPTED","archived":false,"fork":false,"pushed_at":"2023-06-14T16:08:07.000Z","size":2005,"stargazers_count":115,"open_issues_count":22,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T07:11:25.259Z","etag":null,"topics":["competitive-programming","rust","text-editor","vim"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hatoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-09-19T04:24:41.000Z","updated_at":"2025-02-11T02:25:24.000Z","dependencies_parsed_at":"2024-01-13T19:19:13.211Z","dependency_job_id":"b463f6db-af43-4941-bad7-f261a9b5160b","html_url":"https://github.com/hatoo/Accepted","commit_stats":{"total_commits":674,"total_committers":2,"mean_commits":337.0,"dds":"0.0014836795252225476","last_synced_commit":"ca0ee10fcab358920fdc3c5060e31374479bee75"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2FAccepted","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2FAccepted/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2FAccepted/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2FAccepted/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hatoo","download_url":"https://codeload.github.com/hatoo/Accepted/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245882395,"owners_count":20687879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["competitive-programming","rust","text-editor","vim"],"created_at":"2024-07-31T17:01:34.989Z","updated_at":"2025-03-27T16:31:23.766Z","avatar_url":"https://github.com/hatoo.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"Accepted\n===\n\n[![crates.io](https://img.shields.io/crates/v/accepted.svg)](https://crates.io/crates/accepted)\n[![Build Status](https://travis-ci.org/hatoo/Accepted.svg?branch=master)](https://travis-ci.org/hatoo/Accepted)\n[![Join the chat at https://gitter.im/Accepted-text-editor/community](https://badges.gitter.im/Accepted-text-editor/community.svg)](https://gitter.im/Accepted-text-editor/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![dependency status](https://deps.rs/repo/github/hatoo/Accepted/status.svg)](https://deps.rs/repo/github/hatoo/Accepted)\n[![tokei](https://tokei.rs/b1/github/hatoo/Accepted)](https://github.com/hatoo/Accepted)\n\nA terminal text editor to be **ACCEPTED**.\n\n![Accepted screenshot](demo.png \"acc\")\n\n## Description\n\nA modal text editor for competitive programmer written with Rust.\n\nCurrently Accepted supports Rust and C++.\n\n### Features\n\n* Preconfigured for Rust and C++\n* Autoformat with [Rustfmt](https://github.com/rust-lang-nursery/rustfmt) / [ClangFormat](https://clang.llvm.org/docs/ClangFormat.html) / or specify with configuration\n* Completion with [TabNine](https://tabnine.com/) / [RLS](https://github.com/rust-lang-nursery/rls) / [Clangd](https://clang.llvm.org/extra/clangd.html) / or Other LSP servers\n* Auto compile and show compiler messages (Supports rustc / gcc / clang)\n* Easy to test a single a code\n* VScode style snippet support\n* Mouse support\n* rmate protocol\n\n## Install\n\nYou need nightly Rust.\n\n```bash\n$ cargo install accepted\n```\n\nIf you want to install `HEAD` version, you can install from git to\n\n```bash\n$ cargo install -f --git=https://github.com/hatoo/Accepted\n```\n\n### For Rust users\n\nInstall rust components.\n\n```\n$ rustup component add rls-preview\n$ rustup component add rust-src\n$ rustup component add rustfmt-preview\n```\n\n### For C++ users\n\nInstall clang, clang-format and clangd.\n\n# Usage\n\n```\n$ acc [file]\n```\n\nTODO: More precisely.\n\n## Basic\n\nMany commands of `acc` is same as Vim.\n\ni, I, a, A, o, O to insert mode and Esc to return.\n\nhjkl, w, e, b to move cursor.\n\ny, d, c, v, V works like vim\n\n## Space Prefix\n\nSome of commands can run with space as a prefix.\n\nSPACE -\u003e q to Quit.\n\nSPACE -\u003e s to Save.\n\nSPACE -\u003e a to Save As.\n\nSPACE -\u003e y to Copy all to clipboard\n\nSPACE -\u003e SPACE to Rustfmt.\n\nSPACE -\u003e t to compile and run with clipboard input.\n\nSPACE -\u003e T to compile (optimized) and run with clipboard input.\n\nSPACE -\u003e q to Quit.\n\nSPACE -\u003e r to Start rmate server\n\n## Configuration\n\nYou can configure this by toml file placed in `[config_dir]/acc/config.toml`\n\nYou can open config file via `$ acc --config` easily.\n\n`config_dir` is defined in [here](https://docs.rs/dirs/1.0.3/dirs/fn.config_dir.html).\n\nBelow is default configure.\nYou can override with your own configure.\n\n```TOML\n# Configure to defaults\n[file_default]\n# Put spaces instead of '\\t' when tab key is pressed\nhard_tab = false\nindent_width = 4\n# Set true if you are running in legacy terminal which has no true color\nansi_color = false\n# Command for TabNine\ntabnine = [\"TabNine\"]\n# Set theme\n# You can set either theme name which is bundled by `syntect` and file path for .tmTheme\ntheme = \"Solarized (dark)\"\n\n# Configure for *.rs files\n[file.rs]\n# Setting compiler and its type.\ncompiler = { command=[\"rustc\", \"$FILE_PATH\", \"--error-format=json\"], type=\"rustc\", optimize_option=[\"-O\"] }\n# Setting LSP server command\nlsp = [\"rls\"]\n# Setting formatter command\nformatter = [\"rustfmt\"]\n# Command for testing\ntest_command = [\"./$FILE_STEM\"]\n\n[file.cpp]\n# Configure for *.cpp files\n# Respect clang-format\nindent_width = 2\ncompiler = { command=[\"clang\", \"$FILE_PATH\", \"-o\", \"$FILE_STEM\"], type=\"gcc\", optimize_option=[\"-O2\"] }\nlsp = [\"clangd\"]\nformatter = [\"clang-format\"]\ntest_command = [\"./$FILE_STEM\"]\n\n[file.c]\n# Same as cpp\nindent_width = 2\ncompiler = { command=[\"clang\", \"$FILE_PATH\", \"-o\", \"$FILE_STEM\"], type=\"gcc\", optimize_option=[\"-O2\"] }\nlsp = [\"clangd\"]\nformatter = [\"clang-format\"]\ntest_command = [\"./$FILE_STEM\"]\n\n[file.rb]\nindent_width = 2\n\n[file.go]\nformatter = [\"gofmt\"]\nhard_tab = true\n```\n\n## Contribution\n\nAny kind of contribution including feature request is welcome!!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatoo%2FAccepted","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhatoo%2FAccepted","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatoo%2FAccepted/lists"}