Skip to content

A code editor for ComputerCraft.

License

Notifications You must be signed in to change notification settings

Possseidon/cc-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

wget run https://raw.githubusercontent.com/Possseidon/cc-code/main/code/update.lua

Start

To start cc-code run:

code <filename>

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:

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:

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:

shell.run "alias edit /code"

About

A code editor for ComputerCraft.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages