Giter Club home page Giter Club logo

texor's Introduction

texor

A simple text editor written in C.

I'm following along with a tutorial to build an editor like kilo.

Compiling

In the command line at the project root, run:

make

Running

After running make, run:

./texor

Usage

Create New File

Create a new file by running texor with no command-line argument.

./texor

Edit Existing File

Edit an existing file by running texor with the filename as a command-line argument.

./texor texor.c

Status Bar

A status bar is shown in the second-from-the-bottom row, and uses inverted colors. This tells you the file's name, how many lines it has, the filetype (if detected) and what line your cursor is on.

Message Bar

A message bar is shown in the bottom row and initially tells you how to save, search, and quit. As you use the program, it may display other information.

Editing Text

You can edit text normally by type characters, insert new lines, backspacing across lines, splitting lines of text, etc.

Navigating

To move around the file more quickly you can use:

  • Arrow keys
  • Home
  • End
  • Page Up
  • Page Down

Saving

When you have modified a file, you can type Ctrl-S to save the file.

Note: If you are saving a new file, it will prompt you for a filename.

Searching

Type Ctrl-F to search.

Type in your search term and the screen will highlight the first match found. Use the arrow keys to go to the next and previous search results.

Type Enter to finish searching and leave your cursor on that search result or Esc to cancel and return your cursor to where it was before the search.

Syntax Highlighting

Syntax highlighting colors strings, numbers, keywords, and comments for files in both the C and Ruby programming languages.

Quitting

Type Ctrl-Q to quit.

Note: If you have unsaved changes, you'll have to type Ctrl-Q three more times to close the program and lose your unsaved changes.

License

BSD 2-Clause

Credits

Project: https://github.com/snaptoken/kilo-tutorial/
License: CC BY 4.0, https://creativecommons.org/licenses/by/4.0/

Project: https://github.com/antirez/kilo
Copyright (c) 2016, Salvatore Sanfilippo
License: BSD 2-Clause, https://github.com/antirez/kilo/blob/master/LICENSE

texor's People

Contributors

kyletolle avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.