🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
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
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
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