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:
7
sxbm
7
sxbm
@ -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"
|
||||
}
|
||||
|
||||
############
|
||||
|
||||
Reference in New Issue
Block a user