Coder Social home page Coder Social logo

hipper's Introduction

hipper

DEPRECATED

This module is deprecated (and, I guess, abandoned). If you need a simple terminal editor I recommend Nano or openemacs. If you need/want one written in Node for some reason, go with Slap.

Slightly hipper than Hipster.

  • Install: npm i -g hipper, then:
  • run hipper, as in hipper some-file.js

Why use this?

  • You're a dev who needs to ssh into a droplet and make a quick change.
  • You don't want to take the time to learn vi
  • Nano is ugly, has weird keybinds, and is disappearing from GNU.
  • Because I'm cool and you like me.

This is a fork of the awesome Hipster by Dominic Tarr.

Updated and modified to suit myself a little better. All credit goes to @dominictarr. Much of the README below is his, as well.

Contributing: please do! Syntax files are welcome. Anyone with regular expression skills, definitely welcome. Any other fixes or features, probably welcome.

If you're interested in improving highlighting or language support, check out the files under the highlight directory, and if you add a language, please also add it to plugins/highlight.js in your PR.

screenshot


Usage

hipper filename [options]

--margin     # Set to N >= 2 for line numbers.
--page       # PageUp/Down jump size.
--version|-v # print version and exit
--weird      # enable weird backspace.
             # (if it deletes a whole word when you press backspace, enable this)

Hipper has simple controls.

  • Selection (Shift + Arrows)
  • Copy/Paste (sudo apt-get install xclip)

Hipper does not have:

  • Buffers (use dvtm or screen [tmux interferes with controls])
  • Undo (use git)
  • Friendly Warnings (deal with it)

hipper uses rc for configuration. This means you can have a ~/.hipperrc.

Controls

  • Arrows - Slow Movement.
  • Ctrl-Arrows - Fast Movement.
  • Shift-Movement - Select text
  • Ctrl-F - Search forwards for text
  • Ctrl-C - Copy
  • Ctrl-X - Cut
  • Ctrl-P,V - Paste
  • Tab - Indent (to selected lines)
  • Shift-Tab - Unindent (to selected lines)
  • Ctrl-R - Redraw Screen.
  • Ctrl-S - Save.
  • Ctrl-Q - Quit.

Terminals

Some terminals interfere with modifier keys. xterm works well. If you use fancy terminals that have tabs and stuff then you may have trouble selecting text with key combinations like Ctrl-Shift-Up/Down.

Credits

Hipster.

This module depends on keypress, node-charm and colors.js (among some other things).

Known Issues

Doesn't wrap lines (just keep your lines short). Syntax highlighting is not great (try a keyword in a comment, for example).

License

MIT

hipper's People

Contributors

dominictarr avatar zacanger avatar maks avatar dbkaplun avatar eush77 avatar mmalecki avatar

Stargazers

Carlos Burelo avatar

Watchers

James Cloos avatar  avatar  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.