ad-editor 0.4.0

An adaptable text editor
Documentation
1
2
3
4
5
6
7
8
#!/usr/bin/env bash
source "$HOME/.ad/lib/ad.sh"

requireAd
id="$(currentBufferId)"
addr="$(bufRead "$id" addr | sed -E 's/(.+):.+,(.+):.+/\1,\2/')"
adEdit '. x/.+/ s/^/#/'
echo "$addr" | bufWrite "$id" addr