Skip to content

MoAlyousef/red

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

123 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RustyEd

red or RustyEd is a lightweight and minimal text editor which supports multiple-tabs (à la vscode) and which integrates a file browser and a terminal. The editor component supports syntax highlighting via tree-sitter-highlight. lsp support via json-rpc (completions via ctrl+space).

Building

git clone https://github.com/MoAlyousef/red
cd red
cargo build --release

To disable building with tree-sitter and the terminal:

cargo build --no-default-features --release

To build with native wayland support on Linux:

cargo build --features=fltk/use-wayland --release

image

Known issues

  • If you're running KDE and no icons appear in the FileBrowser, you can try setting the KDEDIR to /usr/local.
  • Highlighting via tree-sitter seems to vary between different language modules. tree-sitter-json seems quite limited for example.

ToDo

  • Add a settings dialog.
  • Save and get user settings using fltk Preferences.
  • Enable using FLTK's FileChooser instead of the system provided one via the settings.
  • Add more options to FileBrowser popup menu and the terminal menu.
  • Support user provided color schemes for the app and the highlighting.

About

A minimal fltk-rs text editor example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages