LE(1)
π LE(1) β like, the full screen text editor bestie π
okay so this is the manual for le, and yes it lives in the General Commands Manual section of your man pages. Buckle up, we're doing this together. π«Ά
β¨ NAME β¨
le β a full screen text editor, and honestly? she's iconic. π
πΈ SYNOPSIS πΈ
le [options] filename
π¦ DESCRIPTION π¦
le is a text editor that offers a wide range of capabilities with a simple interface. No cap. She's got a pull down menu and a simple help system so you can actually get started without crying, and if you wanna learn the key combinations, just scroll down to the KEYS section. π
Among her features there are:
- various operations with stream and rectangular blocks
- search and replace with full regular expressions
- text formatting
- undelete/uninsert
- hex editing
- tunable key sequences
- tunable colors
- tunable syntax highlighting
β οΈ The editor currently supports only one loaded file at a time. One file. That's the whole vibe. She's monogamous. π
π₯ KEYS π₯
Here are some starting hints, bestie β write these on your hand if you have to:
F10orC-nβ menu πF1β help π§C-xβ exit (cancel) πArrowsβ navigate π
In the editor, the following key description is used:
Key1-Key2β simultaneouskey1andkey2pressKey1+Key2β sequential keys pressKey1 | Key2β pressKey1ORKey2^KeyβCtrl-Key~KeyβShift-Key^~KeyβCtrl-Shift-Key | Alt-Key
Some of ^Fx, ~Fx, ^~Fx can be typed as ESC+Fx. Periodt. β¨
The rest of the key combinations can be seen in help, in the menu, and in the keyboard map β and you can peek at the default one with le --dump-keymap. π
There is support for block filtering through an external program, a command output read-in, and writing a block through a command. To read or write a block from/to a command, use F4+R or F4+W and a file name of the following format:
|command args
Filtering is achieved by F4+| followed by the command name. Slay. π
π STATUS LINE π
On the status line you can see:
- current line
- column
- the size of loaded file
- the code of character under cursor
- several one letter flags
- file name
- offset in bytes from the file beginning
- percent position in the file
The one letter flags are:
*β modifiedRβ Russian keyboard (works only on certain terminals)Iβ insertOβ overstrikeAβ autoindentDβ dos style line terminators (CR NL)Uβ undelete possibleuβ uninsert possibleBβ column block mode
π TEXT PROTECTION π
To prevent changes loss on crash, le regularly dumps the editing text, if changed, to ~/.le/tmp/FILENAME.PID, where FILENAME is the file name with slashes converted to underlines, and PID is the process id of the editor process. She's got your back fr fr. π«Ά
When the editor gets a fatal signal, it also dumps the text, to ~/.le/tmp/DUMP-SIG-FILENAME.PID, where SIG is the signal number. π
π OPTIONS π
-r,--read-onlyβ Work as viewer, don't allow changes. If your system supportsmmap(2), it will be used to get file contents to memory.-h,--hex-modeβ Start in hex mode.--mmapβ Usemmap(2)to load file read-only. Can be used to view very large files or even devices. This implies-h.--mmap-rwβ Usemmap(2)to load file read-write inMAP_SHAREDmode. Use with caution β the changes go directly to file or disk, no undo. In this mode only replace can be used, but it allows editing of very large files or even devices. This implies-h.
π¨ bestie be careful with --mmap-rw. No undo. The changes go straight to disk. That's not a drill, that's a lifestyle.
--multibyteβ Force multibyte mode on. Multibyte mode is usually enabled automatically as needed.--no-multibyteβ Force multibyte mode off, even if it was automatically determined that it should be on.-b,--black-whiteβ Start in black & white mode.-c,--colorβ Start in color mode. π--dump-keymapβ Dump default keymap tostdoutand exit.--dump-colorsβ Dump default color map tostdoutand exit.--versionβ Print the version of LE and exit.--helpβ Print short description of options and exit.
πΈ ENVIRONMENT VARIABLES πΈ
The following environment variables are processed by le:
HOMEβ Used for tilde (~) expansion.LE_DEFAULT_EOLβ The default EOL marker. It can be set toNL(\n),CRNL(\r\n) orCR(\r). Also it can be set to any other 1-2 character string interpreted literally.TERM,LINES,COLUMNSβ These variables are used by thecurseslibrary for full-screen output.
π FILES π
DATADIR/colors~/.le/colorsDATADIR/colors-$TERM~/.le/colors-$TERM
Color palette description. Those files are sequentially read and color definitions in later files have higher precision.
~/.le/keymap-$TERMDATADIR/keymap-$TERM~/.le/keymapDATADIR/keymap
Key map descriptions. Only the first existing file is read.
~/.le/term-$TERMDATADIR/term-$TERM
Terminal specific options. Only the first existing file is read. Use Options->Terminal menu to tune the options.
./.le.ini~/.le/le.iniDATADIR/le.ini
Options. Only the first existing file is read. Use menu Options to tune these.
.le.syntax~/.le/syntaxDATADIR/syntax
Syntax highlighting rules. Only the first existing file is read. There is no default built-in in the editor, so if those files are not present you won't see any syntax highlighting. π (yes that means your code will look plain, tragic I know)
~/.le/mainmenuDATADIR/mainmenu
Main editor menu. It has simple text format. Only the first existing file is read.
~/.le/history
Various histories are saved here. Do not edit by hand. π
πDATADIRis determined at compile time by the configure script (pkgdatadirvariable). By default it has value/usr/local/share/le.
π AUTHOR π
The LE editor was written by Alexander V. Lukyanov <lav@yars.free.net>. Iconic behavior, honestly. π
and that's the whole page, bestie β written by Alexander V. Lukyanov, dated 28 Sep 2000, living in the LE(1) manual section forever and ever. mwah πβ¨
π¦ where this page comes from
- debian bookworm: le 1.16.8-0.1
- debian trixie: le 1.16.8-1 Β· GPL-3.0-or-later
- ubuntu jammy: le 1.16.8-0.1
- ubuntu noble: le 1.16.8-0.1
- ubuntu questing: le 1.16.8-1
- ubuntu resolute: le 1.16.8-1build1 Β· GPL-3.0-or-later
- ubuntu stonking: le 1.16.8-1build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms