astro

fork of https://github.com/blmayer/astro
git clone git://git.clttr.info/astro.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 635a7cdddd7761b563c5a5d945111594d5822343
parent f175601650dcdaf730f48ac61bb1b8764e974608
Author: René Wagner <rwa@clttr.info>
Date:   Sun, 13 Nov 2022 18:58:24 +0100

add link number to file display

Diffstat:
Mastro | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/astro b/astro @@ -150,7 +150,7 @@ parseurl() { } typesetgmi() { - i=1 + linkcount=1 while IFS='' read -r line do line="$(echo "$line" | tr -d '\r')" @@ -177,7 +177,8 @@ typesetgmi() { line="$(echo $link | cut -d' ' -f2-)" [ -z "$line" ] && line="$link" sty="$sty_linkt" - line="$sty_linkb=>$sty_linkt $line" + line="$linkcount $sty_linkb=>$sty_linkt $line" + linkcount=$((linkcount+1)) ;; '* '*) sty="" && line=" $sty_listb•$sty_listt$(echo "$line" | cut -c 2-)";; *) sty="";;