Itn.LineEditor 0.1.0

dotnet tool install --global Itn.LineEditor --version 0.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Itn.LineEditor --version 0.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Itn.LineEditor&version=0.1.0
                    
nuke :add-package Itn.LineEditor --version 0.1.0
                    

Simple Text Line Editor

This is the simple line text editor like ed or edlin.

Usage

Installation

Download binary

  1. download executable file(nedl-{runtime id}) from Github Release Page
  2. add executable permission

Install as .NET Tool

  1. install .NET SDK 10.x
  2. install as dotnet tool by dotnet tool install -g Itn.LineEditor
  3. add $HOME/.dotnet/tools to PATH

command options

nedl --help then print help

  • -f, --file <file>: input file
  • -e, --encoding <encoding>: input file encoding

commands for edit

execute nedl, you will get prompt like following

[file name]: [current line]/[total lines]
-h to help >

input --help or -h then you will get global help. [command] -h will get command help.

exit

exit command

Usage: exit [options]

  • -i, --ignore-change: exit even if edited

open, o

open file.

Usage: open [options] [filepath]

  • -e, --encoding <encoding>: file encoding
  • -i, --ignore-change: discard changes even if edited

move, m

move line

Usage: move [line number]

if line number is negative, seek from last line

print lines from current lines

Usage: print [number of lines]

insert, i

insert new line in current line

Usage: insert [options]

  • -b, --before: insert before current line

minsert, mi

insert multi line

Usage: minsert [options]

  • -b, --before: insert before current line
  • -e, --eoi <end of input string>: end of input marker, if found, minsert will be completed

delete, d

delete lines from current line

Usage: delete [number of delete lines]

yank, y

yank lines to temporary buffer

Usage: yank [number of lines]

cut, c

yank to temporary buffer and delete lines.

Usage: cut [number of lines]

paste, pa

paste lines from temporary buffer

Usage: paste [options]

  • -b, --before: insert lines before current line

view-yanked, vb

view yanked buffer

save, s

save current lines to file

Usage: save [options] [file path]

  • -e, --encoding <encoding>: file encoding

replace, rep

replace lines by regular expression

Usage: replace [options] --from [from regex] --to [replace string]

  • -e, --exclude <regex>: skip if match
  • -i, --ignore-case: case insensitve
  • -r, --reverse-search: search to head of file
  • -m, --max: max number of search lines

regsearch, res

search by regular expression and move to found line

Usage: regsearch [options] [pattern]

  • -e, --exclude: exclude pattern
  • -i, --ignore-case: case insensitive search
  • -r, --reverse: search to head of lines
  • -s, --skip: stop skip number

regdelete, red

search by regular expressions and delete matched lines

Usage: regdelete [options] [pattern]

  • -e, --exclude: exclude pattern, it is prioritized than pattern
  • -i, --ignore-case: case insensitive search
  • -r, --reverse: search to head of lines
  • -m, --max: max search line limit, negative number means no limit

ChangeLog

0.1.0

initial release

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.1.0 103 4/30/2026