improved search syntax

master
Fabien Benetou 14 years ago
parent 9f65cf55c6
commit 3bb151d266
  1. 3
      shell_scripts/pmwiki_recipes_info_listing

@ -7,7 +7,6 @@
# or manually pmwiki_recipes_info_listing | xclip
#
# TODO
# provide search links on keywords
# clean trailing comments
# s/#.*$// or s/\/\/.*$//
# add a hook (locally and/or remotely) to generate this after each commit
@ -35,7 +34,7 @@ do
echo "[[#$SCRIPT]][[$REPOSITORYURL/$SCRIPT|$SCRIPT]]";
grep RecipeInfo $SCRIPT | sed "s/.*= '\(.*\)';.*/* version (or date) \1/" ;
grep HandleAction $SCRIPT | sed "s/.*], '\(.*\)');.*/* action [[Path:.?action=\1]]/" ;
grep ^Markup $SCRIPT | sed "s/.*:\(.*\):.*/* markup [[Path:?action=search\&q=(%3A\1%3A)|[@(:\1:)@]]]/" ;
grep ^Markup $SCRIPT | sed "s/.*:\(.*\):.*/* markup [[Path:?action=search\&q=%3A\1|[@(:\1:)@]]]/" ;
echo "* functions";
for FUNCTION in `grep ^function $SCRIPT | sed "s/^function \(.*\)(.*/\1/"`
do

Loading…
Cancel
Save