Giter Site home page Giter Site logo

shed's Introduction

Shed - a SHit EDitor

Shed is a bare-bones, opinionated, modal text editor with limited Vim bindings, written in Java.

Features

  • Open source, MIT LICENSE
  • Highly customisable using Java Swing components (self-documenting code)
  • Stable, crash-proof
  • 4KB executable
  • Respects your privacy, no telemetry whatsoever
  • Limited VIM bindings (a good primer for newcomers interested in VIM/NEOVIM)

As per custom, here is a video of Shed editing its own source code.

editingSourceCode.mp4

Key-bindings

Normal mode

Key-binds Function
Move one line up
Move one line down
Move one character right
Move one character left
i Enter Insert mode
:w Save changes made to file
:q Exit file, changes automatically saved

Insert mode

Key-binds Function
ESC Exit to Normal mode

Installation

Pre-requisites

The Java Runtime Environment (JRE) or Java Development Kit (JDK) is required to run the .jar file. It can be downloaded here.

Please use either JDK 17 or JDK 20 as the specified JDK version.

Windows

  1. Download the Java Development Kit (JDK) Windows distribution.
  2. Follow the set-up instructions to install JDK to your machine.
  3. Download the Shed.jar file.
  4. Run Shed.jar as you would any other file on your machine, by double-clicking it.

Linux

  1. Download the Java Development Kit (JDK) Linux distribution.
  2. Assuming the JDK file has been downloaded to the Downloads directory, run the following commands in your terminal.
cd Downloads
sudo apt install jdk-20_linux-x64_bin.rpm 

Note that the instructions above assume a Debian-based distro. Run the relevant commands for your distro.
(eg. Fedora-based distros would run sudo dnf install jdk-20_linux-x64_bin.rpm)

  1. Download the Shed.jar file.
  2. Run Shed.jar as you would any other file on your machine, by double-clicking it.

MacOS

  1. Download the Java Development Kit (JDK) MacOS distribution.
  2. Follow the JDK installer to install JDK to your machine.
  3. Download the Shed.jar file.
  4. Run Shed.jar as you would any other file on your machine, by double-clicking it.

Build Shed yourself

  1. In your terminal, run the following commands.
git clone https://github.com/gongahkia/shed
cd src
javac Texteditor.java
java Texteditor

Note that the instructions above assume JDK 17 or JDK 20 have already been downloaded and added to PATH.

Fonts

shed's People

Contributors

gongahkia 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.