[PD-dev] Work on "help" menu and help-patch searching spec

Krzysztof Czaja czaja at chopin.edu.pl
Wed Apr 27 10:46:07 CEST 2005

Hans-Christoph Steiner wrote:
> A simple set of keywords would be easiest to implement to start with.   
> Then we can test the basic idea out, and see whether its worthwhile to  
> invest a lot of time coding an dynamic, flexible keyword system.

dynamic is easier...  in tcl it could be

while {[gets $ch line] >= 0} {
   if {[regexp $skipbadentries $line] == 0} { ;# for safety
     set helpfile [lindex $line 0]
     foreach c [lrange $line 1 end] {
       lappend categories($c) $helpfile

which might be fed by

find . -name "*-help.pd" -exec awk \
  '/KEYWORDS/ {print FILENAME substr($0,index($0,"KEYWORDS")+9)}' {} \;


More information about the Pd-dev mailing list