Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/possseidon/cc-code
A code editor for ComputerCraft.
https://github.com/possseidon/cc-code
Last synced: about 1 month ago
JSON representation
A code editor for ComputerCraft.
- Host: GitHub
- URL: https://github.com/possseidon/cc-code
- Owner: Possseidon
- License: mit
- Created: 2022-09-07T11:10:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-21T20:56:36.000Z (over 1 year ago)
- Last Synced: 2024-10-30T11:13:58.709Z (3 months ago)
- Language: Lua
- Size: 54.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cc-code
A code editor for ComputerCraft.
β **ComputerCraft uses `ctrl+S` for shutting down! Use `ctrl+D` to save instead!** β
## Notable Features
- π¦ Easy Install/Update
- π Common Editing Shortcuts
- π Lua Syntax Highlighting
- π Text Selection
- π Full Undo/Redo History
- π» Multishell Integration
- β Configurable
- π¨ Themable
- β‘ *Blazingly Fast*## Getting Started
### Install
To install, run the following command:
```sh
wget run https://raw.githubusercontent.com/Possseidon/cc-code/main/code/update.lua
```### Start
To start cc-code run:
```sh
code
```### Update
Once installed, cc-code will (by default) **automatically check for updates** in the background.
To manually trigger an update, run cc-code with the `--update` (or `-u`) flag:
```sh
code --update
```Which does that same thing as simply running the install command again.
### Shell Integration
There will be some sort of `code --integrate` command for this soonβ’.
For now, to get basic autocompletion for files, add the following lines to your `startup.lua`:
```lua
local completion = require "cc.shell.completion"
shell.setCompletionFunction("code.lua", completion.build(completion.file))
```And you can also alias `edit` to `/code` if you want:
```lua
shell.run "alias edit /code"
```