Skip to content
/ m Public

m editor is a modern, easy to use, fast terminal editor then vim or emacs. written in pure Rust.

License

Notifications You must be signed in to change notification settings

lucasjinreal/m

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

m editor

m editor written in rust, it's modern and fast. m means minimal and modern, vims or emacs are just too old and hard to use. Think about how many time wasted when you try to save a file need permissions of sudo. So here we re-written a text editor in pure rust and designed a pretty new and modern editor which can be cross platform. Our dreaming eidtor is a weapon, so it must be simply and straight forward to use. Below is the final design of our brand new m editor:

  • ctrl + s to save;
  • ctrl + q to quit (save and quit);
  • ctrl + o to force quit without save;
  • ctrl + b jump curse to begin (like terminal);
  • ctrl + e jump curse to end;
  • ctrl + d copy current line to next;
  • ctrl + k delete current line;
  • ctrl + c copy select content;
  • ctrl + v paste copied content;
  • ctrl + z undo the last operation;

Above shortcuts were already implemented in m! Just start and check it out, you can easily do your modification on m!

note: This README is edit with m, and it's very comfortable than vim!! I am really welcome rustians send me PR if you are interested in build a self-defined editor! Do u support our brand new design of m? 😆 it should save lots of time in this way!! And very much intuitive.

Install

You should install rust and cargo, so that it can be built like this:

cargo build --release

if you got some error of #![feature] may not be used on stable channel, you can simply do this:

rustup override set nightly

apt-get and brew install will coming soon...

Todo

We continues make function fully support of m, also make it easy to install from apt-get or brew. We will have those function does not support yet, if you interested, welcome to PR!

  • ctrl + a select all;
  • fix some bug;
  • using shift and arrow key to select text;
  • maybe merges more function to m;
  • new create file when filename does not exist;
  • Adding hightlights to certain content such as codes and markdowns.

again, if you want learn rust and like to written a terminal editor with yourself defined shortcuts, you can start m and fork it!!

Copyright

this work is original done by: gchp, I just did some modifications and fit to modern editors.

About

m editor is a modern, easy to use, fast terminal editor then vim or emacs. written in pure Rust.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages