Skip to content

Latest commit

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

litefe

A minimal terminal text editor for Linux

  • mouse support
  • real selection
  • copy / cut / paste, multi-level undo / redo, find, go-to-line

litefe editing its own README

Build

Needs only a C compiler + libc:

cc -O2 -Wall -o litefe litefe.c

Install (optional)

sudo cp litefe /usr/local/bin/

Keys

KeyAction
Ctrl-S / Ctrl-Qsave / quit
Ctrl-F · Ctrl-N/F3find · find next
Ctrl-Ggo to line
Ctrl-CCtrl-XCtrl-VCtrl-Acopy · cut · paste · select all
Ctrl-Z / Ctrl-Yundo / redo
Ctrl-D / Ctrl-Kduplicate line · cut line
Shift+arrowsselect · Ctrl+Left/Right word jump
Ctrl-Tset mark, then move to select (for terminals that eat Shift+arrow, e.g. macOS Terminal.app); Esc cancels
Ctrl-Btoggle mouse mode
Ctrl-Hhelp

Press Ctrl-H inside the editor for the full list.

Mouse modes

Toggle with Ctrl-B:

  • Desktop (default): the terminal owns the mouse, so native drag-select and the right-click menu work and copy plain text. Line numbers are hidden so a selection stays clean, and the mouse wheel scrolls the document.
  • In-app: click places the cursor, drag makes an editor selection, the wheel scrolls, and line numbers are shown.

Copy / cut also push to the system clipboard via OSC 52.

Releases

Packages

Contributors

Languages