Skip to content

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

License

Notifications You must be signed in to change notification settings

Bruce-Hopkins/code-editor-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published