Skip to content
/ kilo Public

The editor from the 'Build your own text editor in C' series, but re-written in C++.

Notifications You must be signed in to change notification settings

nrednav/kilo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kilo

The editor from the 'Build your own text editor in C' series, but re-written in C++.

Setup

  1. Clone this repository locally
git clone [email protected]:nrednav/kilo.git
  1. Build the project
cd kilo
make
  1. Run the editor
# Edit a new file
./kilo

# Edit an existing file
./kilo <insert-filename>

Usage

  • Edit
    • To move the cursor, use the arrow keys
    • To insert a new line, use Enter
    • To delete a character, use Backspace, Delete or Ctrl + h
    • To jump to the end of a line, use the End key
    • To jump to the beginning of a line, use the Home key
    • To scroll the file down or up by an entire page length, use the PageDown or PageUp key
  • Search
    • To initiate a search prompt, use Ctrl + f
    • Type the word you're looking for and hit Enter to perform the search
    • Alternatively, to cancel the search use Esc
    • To cycle through the search results:
      • Jump to next occurence = Ctrl + n
      • Jump to previous occurence = Ctrl + p
  • Save
    • To save any changes you make to a file, use Ctrl + s
    • You will be prompted to enter a filename if you did not open a file at the start
    • To cancel saving, use Esc
  • Quit
    • To quit the editor, use Ctrl + q
    • Then hit y or n to confirm or cancel respectively

About

The editor from the 'Build your own text editor in C' series, but re-written in C++.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published