GithubHelp home page GithubHelp logo

pad's Introduction

Pad

Overview

Pad is a programmer's text editor written in Node.js. It's meant to be used in a terminal, such as iTerm2 for the Mac. It does not have a GUI. The key bindings are currently (mostly) vi-compatible.

See the NOTES file for various architecture notes, to-do list, and design ideas.

Status

The editor can show text files. Very basic vi movement and edit keys are supported. All work on the code is done with pad, so it's at least self-hosting. The editor is incredibly inefficient (e.g., it lays out all the text and redraws the whole screen with every keystroke), but this is still fast enough to not be noticed on the author's computer.

Usage

The script requires Node.js. It has been tested on Node version 0.10.22. To install, download this repo and run the "pad" script, specifying an existing file to edit:

% pad foo.js

To quit, type:

:q()

The command line is evaluated as JavaScript, so you need to add the parentheses to call the quit (q) function. To save the file, type:

:w()

Incompatibilities with vim

Differences between pad and vim:

  • The cursor can go one spot past the end of the line. This is consistent with the behavior on an empty line.
  • After escaping out of insert mode, the cursor does not back up. With vim if you insert "123" then immediately insert "abc", you get "12abc3". With pad you get "123abc".
  • ^J and ^K move the current line down and up one line.

pad's People

Contributors

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