Skip to content
/ Crust Public

Crust is a lightweight extremely fast text editor created with rust gtk4

Notifications You must be signed in to change notification settings

orhnk/Crust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crust

Crust is lightweight incredibly fast text editor fully created with rust.

Crust uses;

∫ css for configuration,

∫ gtk4 as guilib,

∫ rust as language,

Crust features:

∫ No buttons! -> no need to click, use your keyboard instead.

∫ Simple! -> You could use simple combinations like: shift+ctrl+arrow keys to highlight a text by words

∫ Easy to configure -> Uses default gtk4 css configuration which makes it super easy!

∫ Smooth animations -> Crust uses default gtk4 animations on a Text instance, which is pretty smooth and good-looking!

Installation

Cargo (Cross-platform)

cargo install crust_ide
./install.sh

-> install.sh creates config files which allows you to costumize the text editor on your home (crust.css, crust.ui)

Test:

type crust anywhere on your terminal and something like this has to come out!

Trouble Shooting:

If your crust does not work on your terminal try this: (your .cargo/bin has to be on $PATH)

export PATH=$PATH:~/.cargo/bin/
cargo install crust_ide --force

IMPORTANT

You MUST have crust.ui and crust.css files on your /usr/share/crust/ to be able to use crust command

IMPORTANT!

Crust saves your files when you quit! There is no option to save otherwise for now. So do not delete some files and exit thinking that your files will going to be "safe" after unsaved quit! Crust saves are handled automatically!

Config

/* This file is a config file which will determine your crust-editor's look */
/* This file uses real css to configure crust */

textview.view {
  /* Default gruvbox theme*/
  color: #ebdbb2;
  background-color: #282828;
  font-family: serif; /* -> ADDED <- */
}

Screenshot_20221217_222102

Examples

Screenshot_20221217_220507

My personal config (Gruvbox Theme)

Screenshot_20221217_220639

Saves When You quit!

Screenshot_20221217_220710

Benchmarks

extremely fast gui!

./crust  0,22s user 0,14s system 111% cpu 0,330 total
./crust  0,26s user 0,14s system 116% cpu 0,344 total
./crust  0,25s user 0,10s system 119% cpu 0,285 total
./crust  0,23s user 0,14s system 111% cpu 0,336 total
./crust  0,25s user 0,12s system 115% cpu 0,322 total
./crust  0,24s user 0,14s system 110% cpu 0,343 total

About

Crust is a lightweight extremely fast text editor created with rust gtk4

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published