0.0.7 • Published 5 years ago

chi-editor v0.0.7

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

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

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago