edit

edit opens a writable text file in the lightweight browser editor or creates it explicitly with -n. It is intended for quick plain-text changes where syntax highlighting is unnecessary.

DevelopmentVersion 1.2.4Stable
lil-terminal

Overview

Use edit when the job is simply to read and change text. It has fewer moving parts than the code editor, while keeping the same direct file workflow and documented editor shortcuts.

Quick text changes with a small editor

edit notes.txt opens an existing file; edit notes.txt -n creates it only when it is missing. For source files where syntax context matters, use code instead.

Syntax

lil-terminal
edit <file> [options]

Reference

edit <file>

open a file in the text editor

-n

create a missing file and open it

help hotkeys

show editor keyboard shortcuts

When to use edit

Use edit <file> for notes, configuration fragments, logs or source files when syntax highlighting is unnecessary. Use code <file> when language detection and syntax highlighting make the change easier to review. Opening a file does not execute its contents.

File rules

The target must be a regular readable and writable text file. Binary data is rejected and files larger than 2 MiB are not opened. With -n, the parent directory must already exist; an existing file is never recreated.

Interactive sandbox preview

Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.

Open a file in the text editor

Install and manage

Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.

Base and Minimum are two packages of the same current module release, not separate command versions.

Base package

Install the complete package with local command reference and every published mode.

install edit
Minimum package

Install the reduced package. Local reference is omitted; help <cmd> -i opens the current server reference.

install edit -m
Exact public version

Install exactly this published version.

install edit -v 1.2.4
Check or update

Ask upgrade to check compatibility and replace the installed block only when needed.

upgrade edit
Remove module

Remove the extension block while leaving the core and unrelated modules intact.

install edit -u

Examples

Examples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.

Open a file in the text editor
cd \sandbox | edit data/sample.txt
editor  sandbox/data/sample.txt
new     no
Open a file in the text editor
edit \sandbox\data\sample.txt
editor  sandbox/data/sample.txt
new     no
Create a missing file and open it
edit \sandbox\tmp\review.txt -n
editor  sandbox/tmp/review.txt
new     yes
Handle a missing text file
edit \sandbox\missing.txt
File not found

File used in this example: sandbox/data/sample.txt

The example uses a file or directory from the protected /sandbox/ documentation workspace.

lil-terminal sandbox text file

This file is safe to read, copy, rename, replace, hash and archive.

Related documentation

Current public release

v1.2.42026-08-14

Compact edit option

File creation is documented once as the -n option instead of repeating the full command.