Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implementation of multiline #56

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .kilorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
indent = 8
keywordcolor1 = red
keywordcolor2 = cyan
stringcolor = white
24 changes: 10 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
Kilo
===

Kilo is a small text editor in less than 1K lines of code (counted with cloc).

A screencast is available here: https://asciinema.org/a/90r2i9bq8po03nazhqtsifksb
Kilo is a small text editor

Usage: kilo `<filename>`

Expand All @@ -12,15 +10,13 @@ Keys:
CTRL-S: Save
CTRL-Q: Quit
CTRL-F: Find string in file (ESC to exit search, arrows to navigate)
CTRL-V: Paste one line
CTRL-C: Copy one line
CTRL-G: Move to end of currnet line
CTRL-T: Move to first of current line
CTRL-D: Move to end of file
CTRL-X: Remove one line
CTRL-P: Replace from original string to what you want to replace it
CTRL-Z: Undo
.kilorc: Editor configuration file

Kilo does not depend on any library (not even curses). It uses fairly standard
VT100 (and similar terminals) escape sequences. The project is in alpha
stage and was written in just a few hours taking code from my other two
projects, load81 and linenoise.

People are encouraged to use it as a starting point to write other editors
or command line interfaces that are more advanced than the usual REPL
style CLI.

Kilo was written by Salvatore Sanfilippo aka antirez and is released
under the BSD 2 clause license.
13 changes: 3 additions & 10 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
IMPORTANT
===

* Testing and stability to reach "usable" level.

MAYBE
===

* Send alternate screen sequences if TERM=xterm: "\033[?1049h" and "\033[?1049l"
* Improve internals to be more understandable.
3. status console manipluation
4. find
5. turn to REPL
Loading