Crates.io | desed |
lib.rs | desed |
version | 1.2.2 |
source | src |
created_at | 2020-04-21 15:29:02.260267 |
updated_at | 2024-10-15 16:09:00.488625 |
description | Sed script debugger. Debug and demystify your sed scripts with TUI debugger. |
homepage | https://soptik.tech/ |
repository | https://github.com/SoptikHa2/desed |
max_upload_size | |
id | 232585 |
size | 6,300,575 |
Demystify and debug your sed scripts, from comfort of your terminal.
Desed is a command line tool with beautiful TUI that provides users with comfortable interface and practical debugger, used to step through complex sed scripts.
Some of the notable features include:
aports/testing/desed
Via AUR: desed-git or desed as stable version.
pkg install desed
dnf install desed
pkg install desed
xbps-install -S desed
git clone https://github.com/soptikha2/desed
cd desed
cargo install --path .
cp "desed.1" "$(manpath | cut -d':' -f1)/man1"
cargo install desed
See releases.
Development: rust
, cargo
(>= 1.38.0)
Runtime: sed
(GNU version, >= 4.6) (desed works on BSD if you installed gsed
)
j
, k
, g
, G
, just as in Vim. Prefixing with numbers works too.b
to toggle breakpoint (prefix with number to toggle breakpoint on target line)s
to step forward, a
to step backwardsr
to run to next breakpoint or end of script, R
to do the same but backwardsl
to instantly reload code and continue debugging in the exactly same place as beforeq
to quitGNU sed actually provides pretty useful debugging interface, try it yourself with --debug
flag. However the interface is not interactive and I wanted something closer to traditional debugger. I've written something here.
Depends. Sed actually doesn't tell me which line number is it currently executing, so I have to emulate parts of sed to guess that. Which might not be bulletproof. But it certainly worked good enough to debug tetris without issues.
Sed is the perfect programming language, especially for graph problems. It's plain and simple and doesn't clutter your screen with useless identifiers like if
, for
, while
, or int
. Furthermore since it doesn't have things like numbers, it's very simple to use.
I wanted to program in sed but it lacked good tooling up to this point, so I had to do something about it.
Because it's the standard stream editor for filtering and transforming text. And someone wrote tetris in it!
I would like to introduce syntax highlighting and add this tool to standard repositories of all major distributions.
I thought it was. But apparently it's actually useful for some people.