dorkhub

code-editor-prototype

A prototype of a code editor built in Rust, using Iced for graphics

Bruce-Hopkins
Rust625 forksApache-2.0updated 1 year ago
git clone https://github.com/Bruce-Hopkins/code-editor-prototype.gitBruce-Hopkins/code-editor-prototype

Code Editor Prototype

Currently, this editor is in pre-alpha. Missing features and bugs are expected.

Description

This is a code editor GUI editor built with Rust and Iced. The goal is to become a highly customizablizable, lightweight editor. With a built in highlighter and LSP support.

Currently, this is only a demo. The editor only highlights Rust, and the LSP client only works with Rust analyzer. Better support for other programming languages will be supported in the future.

Build

For Linux users, libgtk will need to be installed to build the project.

Inside the root of the codebase run

cargo run --release

To receive diagnostics from rust analyzer, install the rust analyzer binary to your $PATH with these instructions.

Usage

  • Type ctrl/command+o to open a new folder
  • Type ctrl/command+p to open a new file
  • Type ctrl/command+s to save the opened file
  • Type ctrl/command+l to display the error of the diagnostic over the cursor. (You can also just click on the diagnostic)

Todo

While the current state of the editor is a great starting point, there's a lot of work that needs to be accomplished before this can be a fully-fledged code editor. That includes:

  • Adding a scripting language to allow for plugins and extensions.
  • Upgrading to Iced 0.12
  • Adding a file explorer
  • Improving LSP support
  • Supporting more programming languages

more like this

anne-key

Firmware for Anne Pro Keyboard written in Rust

Rust572

TachiSnap

TachiSnap — Pixel Snapper for animation pixel artists. Rust + WebAssembly client-side tool for cleaning up AI-generated…

HTML50

bit_gossip

Pathfinding library for calculating all node pairs' shortest paths in an unweighted undirected graph.

Rust50

search

search projects, people, and tags