From 24beaf1c6178c9400e5a576826923c23d4d77011 Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Wed, 16 Feb 2022 19:24:35 -0500 Subject: [PATCH] improve femto.txt --- femto.txt | 39 ++++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/femto.txt b/femto.txt index 6dc5eb1..65b6149 100644 --- a/femto.txt +++ b/femto.txt @@ -1,4 +1,4 @@ -femto text editor +---- femto text editor ---- based on nano. @@ -9,22 +9,39 @@ turned off. the `femto` wrapper script achieves this using `sttry raw -echo` (it also restores the previous terminal settings on exit). -current status: - - hardcoded input path +you must provide a path to a file when starting femto: + + ./femto femto.tal + +----- current status ----- + - can't save changes - - no page up/down - - at least one delete bug - doesn't support long lines/horizontal scrolling - no search (or search&replace) - - no help messages/status bar context - - hardcodes 80x24 dimensions even on larger terminals + - no help messages + +----- special key bindings ----- + + C-o save (TODO) + C-x quit -special key bindings C-a go to beginning of line - C-b move back one character - C-d delete C-e go to end of line + + C-b move back one character C-f move forward one character C-n move down one line C-p move up one line - C-x quit + + M-v page up + C-v page down + + M-< go to start of file + M-> go to end of file + M-g go to line (TODO) + + C-l refresh screen + C-d delete + + (C stands for Control) + (M stands for Meta, often Alt or Option)