Git Product home page Git Product logo

streakline's Introduction

โš ๏ธ Streakline is deprecated. Go and use sued, it's a rewrite and continuation of Streakline in Rust which is actually just much better than this crap that I wrote when I was an idiot 18-year-old.


A WYGIWYG line mode text editor, inspired by the standard text editor, ed!

GNU/Linux instructions

Python will usually already be installed on your distribution. If not, you must install at least Python 3.0.

The following instructions work for macOS or any other *nix system too.

You can go ahead and just type in ./stline.py to run Streakline.

If you want to install it (because of course you do) then run the following command as root:

cp ./stline.py /usr/local/bin/stline

If you don't have root access:

cp ./stline.py /your/preferred/path/to/stline
export PATH=$PATH:/path/to/stline

/usr/local/bin/ will already be in your PATH, so no further setup is required. Just type stline into your terminal to start using it. Have fun!

Windows instructions

It is recommended to use Cygwin or Git Bash and follow the above instructions -- standard Windows CMD usage is finicky.

You need to be able to run python.exe from the command line. If this is possible, simply type python stline.py.

To run Streakline anywhere, stline.py should be added to PATH.

Commands

  • ~save - Save the file and exit.
  • ~exit - Exit without saving.
  • ~show - Show the contents of the file and buffer.
  • ~del - Remove the last line from the file buffer.

Example

~$ python ./stline.py
What file name? > youar.e
Warning - this file already exists.
File 'youar.e' opened for writing.
Start typing. Changes will be saved in buffer.
youar.e > meow :3
youar.e > ~show
Previously stored:
egg
brain
fish
To be saved:
meow :3
youar.e > ~save
File 'youar.e' - 18 bytes saved.
~$

streakline's People

Contributors

aeriavelocity avatar

Stargazers

CXK avatar

Watchers

 avatar

streakline's Issues

Incorrect byte reading

The following line:

filesize = os.path.getsize(filename)

is supposed to get the file size of the file that has just been saved, but sometimes it incorrectly reports it:

What file name? > something
File 'something' opened for writing.
Start typing. Changes will be saved in buffer.
ed > something
ed > #save
File 'something' - 0 bytes saved.

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.