GithubHelp home page GithubHelp logo

mobiusloopfour / mle Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 390 KB

My line editor!

License: GNU General Public License v3.0

Makefile 0.51% Shell 0.05% M4 0.47% C++ 88.37% Yacc 9.49% LLVM 1.10%

mle's Introduction

MED - Mobiusloopfour's Editor

Image

Med is a simple, easy to use line based text editor. Although inspired by ED(1), it is not designed to be compatible with it, and does not share the same commands.

Getting statrted

First, you might want to set up the build system. Run ./autogen.sh && ./configure && make. When building using make, the executable is built in /src/. To install it on your system, ensure there are no other programs called mle, and type make install. To uninstall, simply open (or clone and ./autogen.sh && ./configure) this repository, and type make uninstall.

Editing

To start editing a file, type

  • mle <FILE> where FILE is a filename. IF it does not exist, it will be created when saving.

This will open med. The default user interface is rather empty... There are several commands available. They are as follows:

  • .list (list) --- prints the document loaded in memory to the standard out.
  • .add (append/add) --- adds text to the end of the file. Type "." (without the quotes) to end append mode. To have a line with a single dot, type "." (without the quotes). To have an empty line, type "\n" (without the quotes).
  • .quit (quit) --- exits, reminding to save if applicable
  • .write (write) --- write whats in the buffer to the path specified in the command line
  • <NUMBER>.chg (change) --- replace a single line with <TEXT>.
  • <NUMBER>.insert (insert) --- inserts text at NUMBER.
  • <NUMBER>.x (quick delete) --- Delete a single line.
  • <RANGE>.print (print) --- Print a range of lines (1 based indexing).
  • <RANGE>.del (delete) --- Delete a range of lines

All of these have short variants, that being their first letter (without a dot). E.g: $,$d is equivalent to $,$.del

If you're confused about ranges, they are specified with <START-NUM>,<END-NUM>. Both <START-NUM> and <END-NUM> can be "$", in which case they will be substituted by the first and last lines respectively.

Note that the mle will only start executing what's in the buffer once you hit enter.

Known issues

As this is still a pre-release, there are still some bugs. Most notable are:

  • The code might (?) soft-lock in some instances. Better state management will be added soon.

These issues will be fixed soon.

mle's People

Contributors

mobiusloopfour avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.