nano — a small, friendly text editor
SYNOPSIS
nano [file] echo text | nano
DESCRIPTION
Opens the file in a full-window editor inside the terminal, in the style of GNU nano: a title bar, the text, a status line and the list of shortcuts at the bottom. A missing file is created when you save it; with no file name, nano asks for one on save. Text piped in becomes the new buffer.
Files are saved in the shell's filesystem, in this browser. As guest you
may write in your home directory; other places need su.
The shortcuts are nano's, with one exception: browsers do not let a page catch Ctrl+W (it closes the tab), so search is on Ctrl+F. Every shortcut in the bottom bars can also be clicked or tapped — handy on a phone.
SHORTCUTS
^S save the file ^O write out: save under a name (Enter keeps the current one) ^X exit (asks to save a modified buffer: Y, N, or ^C to cancel) ^K cut the current line (successive cuts stack up) ^U paste the cut lines ^F where is: search forward, wrapping around ^C show the cursor position (copies when text is selected) ^G show / hide this help ^Z undo typing (the browser's native undo; not cut / paste)
HOW IT WORKS
The editor is a plain text area styled as a terminal: no plugin, no account, nothing sent to a server. Saved files go to the shell's filesystem, kept in this browser (localStorage) — they are still there after a reload, and gone if you clear the site's data.
USE CASES
- jot down a note or a snippet quickly, in a distraction-free editor;
- practise nano's shortcuts before using it on a real server;
- edit a document from the shell (cat about.md | nano) and save a copy.
NOTES
vi and vim open this same editor: it is not modal, so there is no
insert mode and no :wq — type right away, save with ^S, quit with ^X.
Files live only in this browser: they are not synced between devices. Copy anything you want to keep elsewhere (^C copies the selection).
EXAMPLES
nano notes.txt nano ~/todo.md cat about.md | nano
SEE ALSO
cat, touch, ls, grep