https://github.com/emar10/jet
Easy to use terminal-based *nix text editor.
https://github.com/emar10/jet
command-line linux macos ncurses text-editor
Last synced: about 2 months ago
JSON representation
Easy to use terminal-based *nix text editor.
- Host: GitHub
- URL: https://github.com/emar10/jet
- Owner: emar10
- License: mit
- Created: 2018-01-24T17:19:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-18T02:08:30.000Z (over 3 years ago)
- Last Synced: 2025-10-10T12:42:20.869Z (9 months ago)
- Topics: command-line, linux, macos, ncurses, text-editor
- Language: C
- Homepage:
- Size: 79.1 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jet v1.0
"Snappy" terminal-based \*nix editor written in C using ncurses.
## Prerequisites
Jet requires Ncurses, and CMake for building.
## Building
Clone, `cmake ./`, `make`, `make install`. Binary is written as `jet`.
To change the install prefix, call CMake with `-DCMAKE_INSTALL_PREFIX=`
## Usage
Jet can open existing files or start with an empty buffer. Changes can be saved with Ctrl-S, and
new files can be opened with Ctrl-O.
Run using `jet `. Arrow keys navigate through the file, Page Up and Page Down to scroll,
Home and End snap to beginning/end of line. Ctrl-Q to quit.
Jet will automatically highlight syntax for supported filetypes. See below for more info.
## Syntax Highlighting
Syntax highlighting is done through all `.jsr` files found at `../share/jet/syntax/` relative to
Jet's executable. The package currently includes highlighting for C and Java. If you are interested
in creating your own syntax files, refer to the existing rule files and `syntax.c`.
## A note on trustworthiness
Jet is now at the point where it can theoretically be used as a general-purpose editor.
That said, it may still behave strangely under certain circumstances, and I do not suggest using it
for anything mission critical, *especially* for files not under version control or some other backup
mechanism. By using it, you accept any risk of data loss, equipment damage, thermonuclear war, etc.
As always, please do report any bugs that you run across, so that I can continue to improve
reliability and stability.