Skip to content

D-Chandrahas/giga-text-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build instructions for ubuntu 23.10

  • sudo apt update
  • sudo apt install libncursesw6 pkg-config
  • git clone https://github.com/D-Chandrahas/giga-text-editor
  • cd giga-text-editor/src
  • g++ -O3 *.cpp -o ../bin/giga $(pkg-config ncursesw --cflags --libs)
  • cd ../bin
  • you can find the compiled binary in giga-text-editor/bin
  • (optional) make it globally accesible with sudo cp giga /usr/local/bin/

Usage

giga [filepath]

filepath: optional, if not provided, opens a new file

Examples

giga ~/Desktop/notes.txt
giga /home/user/Desktop/notes.txt

Interface

The editor looks like this in the default ubuntu terminal:

main-interface

The options area changes based on the selected option and state of the editor.

Examples

options_area_1

options_area_2

options_area_3

The text overflow indicators are shown when a line is too long to fit in the screen and must be scrolled horizontally to view the entire line.

Options

  • Ctrl + W : Write Out - Write the contents of the editor to a file. If the file does not exist, it will be created. If the file exists, it will be overwritten.

  • Ctrl + X : Exit - Exit the editor. No prompt to save changes is given. Unsaved changes will be lost.

  • Ctrl + O : Open File - Open a file in the editor. If the file does not exist, error message is shown. Any unsaved changes will be lost.

  • Ctrl + G : Go To Line - Go to a specific line number in the editor.

  • Ctrl + C : Cancel - Cancel the current operation. Option is only displayed when available.

  • Enter : Continue - Continue after a successful operation. Option is only displayed when available.

About

Terminal text editor inspired by GNU nano

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages