Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chi-editor

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chi-editor

CLI editor made for fun

  • 0.0.7
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Introduction

CLI editor made for fun

Install:

npm install -g chi-editor
chi <file-name>

Features

Shortcuts

HotkeyDescription
C-q or C-cQuit the editor
C-sSave the buffer to file
ReturnSplit lines
BackspaceDelete previous character, merge lines
DeleteDelete current character
C-p or upMove cursor to previous row
C-n or downMove cursor to next row
C-b or backMove cursor to forward
C-f or rightMove cursor to backward
EscIgnore
C-uUndo
HomeMove cursor to start of line
EndMove cursor to end of line

Config

Create chi.json in the same folder from where you are running the editor. Global config is not supported yet.

Following structure (all options with defaults):

{
  "editorOptions": {
    "lineNumbers": false
  }
}
OptionDescriptionType
editorOptions.lineNumbersShow/hide line numbersBoolean

Development

Run yarn xd to open the sample file. Tail debug.log and write to stderr for development debugging.

Contribute

Please feel free to suggest issues and chime in

FAQs

Package last updated on 18 Sep 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc