Download Latest Version led-20210318.tar.gz (23.2 kB)
    Email in envelope

    Get an email when there's a new version of led-text-editor

    Home
    Name Modified Size InfoDownloads / Week
    README.txt 2025-01-31 2.6 kB
    led-20210318.tar.gz 2025-01-31 23.2 kB
    Totals: 2 Items   25.8 kB 0
    Usage: lua led.lua | FILE | -a SCRIPT_FILE LIST_FILE
    
    Commands are:
     1[,#,n]       List the 1st lines (default 10), with n show line number
     a|z,#[,#,p|f] List the previous and/or following lines (default 5) of any line, with (a) or without (z) line number
     b[,#,n]       List the bottom lines (default 10), with n show line number
     c[,#,#]       Copy all or some or only one line
     d[,#,#]       Delete all or some or only one line
     e,#[,i]       Edit a line (get it from clipboard), with i start to insert below that line, type a dot to return
     f[,$]         Show file info or change file name
     g[,#,#]       Mark a range of lines, list that range with line number
     h[,#]         Show this help (default all)
     i[,#]         Insert into buffer given text below last or from any line, type a dot to return
     j,#,#         Join a line with another
     k             List marked range without line number
     l|n[,#,#]     List all or some or only one line, without (l) or with (n) line number
     m[,#,n]       Press Return to scroll # lines every time (default 40), with n show line number, type s to stop, 'm,' to continue
     o             Switch to DOS/Mac format
     p[,#]         Paste below last or from any line
     q             Ask to quit
     r,$[,#]       Read a file and insert into buffer content below last or from any line
     s,$[,$,#,#]   Search a string or substitute it with another one (support Lua patterns) in all or some or only one line, for a comma type |cM
     t[,#]         Replace tab with # spaces (default 1)
     u             Undo<->Redo
     v             Show version and license
     w             Write out
     x[,$,r]       Write and execute file or a shell command + file, execute a shell command, with r record it
    
    With -a apply d, j, o, r, s, t commands from SCRIPT_FILE to files listed in LIST_FILE
    
    To compile by yourself download and extract Urn:
    
    https://urn-lang.com/
    
    i suggest to make an alias, something like this:
    
    alias urn "lua urn-master/bin/urn.lua"
    
    then type:
    
    urn -o led.lua led.lisp
    
    or:
    
    urn -o led.src.lua led.lisp
    luac -s -o led.lua led.src.lua
    
    On UNIX systems with XTerm please install XSel and rlwrap:
    
    alias led='rlwrap -c /path/to/lua /path/to/led.lua'
    
    inside ~/.Xresources insert something like this:
    
    XTerm*VT100.Translations:       #override\n\
     Super <KeyPress> v: insert-selection(PRIMARY)\n\
     Super <KeyPress> c: copy-selection(PRIMARY)\n
    
    when select to edit a line paste it on prompt from clipboard;
    works also on AmigaOS, MorphOS and AROS.
    
    For any question: pasquale_frega@tiscali.it
    or visit: https://pasqualefrega.antiblog.com/
    Source: README.txt, updated 2025-01-31