DATA_ATTRIBUTES TagsFile { ICON Tags ACTIONS RemakeTags,NEdit,Vi DESCRIPTION File of ex(1) or vi(1) tags generated by the ctags(1) \ command. The action \`\`RemakeTags\'\' associated with \ this file type is \`\`ctags -t *.[chCH]*\'\' unless an \ executable file called \`\`.ctagsrc\'\' exists in the \ same directory, in which case that is executed \ instead. Exuberant ctags flags are: \ \`\`ctags -i+fgtdmCS-v --format=1 -p \`pwd\`\'\' } DATA_CRITERIA TagsFile1 { DATA_ATTRIBUTES_NAME TagsFile PATH_PATTERN */tags MODE !d&!x } ACTION RemakeTags { ICON Tags ARG_TYPE TagsFile WINDOW_TYPE NO_STDIO EXEC_STRING sh -c \ 'mx=30; mn=5; \ ctagscmd=ctags; \ ctagsarg="--format=1"; \ files=`ls *.[cHhH]* | \ grep -i "^[^~]*[.][ch][px]*\$"`; \ result=`( ( [ -x .ctagsrc ] && .ctagsrc ) || \ \$ctagscmd \$ctagsarg \$files ) 2>&1`; \ l=`echo "\$result" | wc -l`; \ if [ \$l -gt \$mx ]; then l=\$mx; fi; \ if [ \$l -gt \$mn ]; then \ echo "\$result" | mlist -pb2label "" \ -specfont 7x13 \ -list \$l -title "ctags"; \ else \ myesno -xrm \ "*FontList: *-courier-bold-r-normal--14*iso8859-1" \ -text "\$result" -pb1 Dismiss -pb2 "" \ -title "ctags"; \ fi' }