Socket
Socket
Sign inDemoInstall

mug

Package Overview
Dependencies
4
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mug

a command line text editor written in and powered by coffeescript which can use codemirror modes


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

mug

coffeescript/ncurse based command line text editor which utilizes codemirror modes

#What? Yeah basically vim but written in coffee with way less features!

Right now you can edit and save files and issue some very basic commands.

You start in insert mode, pressing escape brings you back to visual mode.

In visual mode i visual mode : command > short cut for :do -> / regular expression s,save save file sa,saveAs save file as q,quit quit sq,wq save and quit esc exit command mode

When writing commands you have access to the entire Mug object via @doc. This is mainly useful for manipulating @doc.lines e.g.

:do -> @doc.lines = (line.map((c) -> c.toUpperCase()) for line in @doc.lines)

would upper case all of the lines in the document.

#TODO add selecting of text/cut/copy/paste add regex searching show result of commands plugin system code mirror syntax highlighting web server mode (starts express server for your project so you can do js fiddle style rapid dev)

Keywords

FAQs

Last updated on 26 Feb 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc