Skip to content

TextVation is a simple text editor driven by innovation. It is written in C and privides a simple, lightweight, and efficient environment for text editing.

Notifications You must be signed in to change notification settings

raoanmol/TextVation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📝 TextVation

TextVation is a simple text editor driven by innovation. It is written in C and privides a simple, lightweight, and efficient environment for text editing.

⭐ Features

  • TextVation supports basic text editing functionalities like insertion, deletion, and navigation through the text.
  • It handles arrow keys (left, right, up, down), page up/down, home and end keys.
  • It supports syntax highlighing for C and C++, with highlighting for keywords, numbers, and strings.
  • TextVation is extensible and new features can be added with ease.
  • It operates in raw mode, handling all the input directly for a more controlled user experience.

🚀 Usage

To compile and run the text editor, use the provided Makefile. Run the make command in your terminal to compile the program, and then start the text editor with the created executable.

make
./textvation

You can open a file by providing the filename as an argument:

./textvation filename.txt

📘 Manual

Here's a brief guide on how to use TextVation:

  • Arrow Keys: Use the arrow keys (up, down, left, right) to navigate through the text.
  • Page Up/Down: Scroll through the file a page at a time.
  • Home: Move the cursor to the start of the line.
  • End: Move the cursor the the end of the line.
  • Ctrl-Q: Quit. If there are unsaved changes, you will need to press this twice in succession without saving.
  • Ctrl-S: Save the current file.
  • Ctrl-F: Find a string in the file. You can use arrow keys to navigate through the matches.

💡 Development

TextVation was developed with a focus on simplicity and efficiency. It uses standard libraries like <ctype.h>, <errno.h>, <fcntl.h>, <stdio.h>, <stdarg.h>, <stdlib.h>, <string.h>, <sys/ioctl.h>, <sys/types.h>, <termios.h>, <time.h>, and <unistd.h> to achieve its functionalities.

📜 Licensing

This work is a derivative of the tutorial by snaptoken released under a CC BY 4.0 license. Snaptoken's work is inspired by Salvatore Sanfillipo (aka antirez) and released under the BSD-2 clause license (see kilo.LICENSE). All the files under this repository are licensed under the BSD-2 clause.

About

TextVation is a simple text editor driven by innovation. It is written in C and privides a simple, lightweight, and efficient environment for text editing.

Resources

Stars

Watchers

Forks

Packages

No packages published