initial list implementation

this is very broken. need to implement proper query parsing.
sniff out line num if exists, sniff out tags and then title.
need to implement strict tag search as well.
This commit is contained in:
NRK
2021-04-13 00:19:42 +06:00
parent b0a4ceddcd
commit f083645b3c

7
sxbm
View File

@ -67,6 +67,13 @@ bm_list(){
;;
esac
done
awk -v COL_LINK="$COL_LINK" -v COL_TITLE="$COL_TITLE" \
-v COL_LINE_NUM=$COL_LINE_NUM -v QUERY="$QUERY_TITLE" \
' $0 ~ QUERY { LINK=$1; $1="";
gsub(/+\w+/,"");
print COL_LINE_NUM NR ") " COL_LINK LINK " " COL_TITLE $0 ; }' \
"/artix/home/nrk/documents/source/sxbm/bookmarks"
}
############