Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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"
```