diff options
Diffstat (limited to '.w3m/cgi-bin/fnx_generate.cgi')
-rwxr-xr-x | .w3m/cgi-bin/fnx_generate.cgi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.w3m/cgi-bin/fnx_generate.cgi b/.w3m/cgi-bin/fnx_generate.cgi new file mode 100755 index 0000000..2ed53df --- /dev/null +++ b/.w3m/cgi-bin/fnx_generate.cgi @@ -0,0 +1,7 @@ +#!/usr/bin/env sh +# generate w3m functions to proper formatting for fzf menu +cat /usr/share/doc/w3m/README.func | while read -r line; do + func_name="$(echo "$line" | awk '{print $1;}')" + description="$(echo "$line" | awk '{for (i=2; i<NF; i++) printf $i " "; print $NF}')" + echo "${func_name}#@${func_name}\\\$#-- ${description}" +done |