Browse Source

Fork _list_functions_in for narrow listing

Alois Mahdal 10 years ago
parent
commit
871dfdf23f
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      ffoo.sh.in

+ 8
- 1
ffoo.sh.in View File

53
             local mod=$(ffoo _parse_fspec_to_mod "$2")
53
             local mod=$(ffoo _parse_fspec_to_mod "$2")
54
             echo "${2##$mod.}"
54
             echo "${2##$mod.}"
55
             ;;
55
             ;;
56
-        _parse_path_to_fnlist)
56
+        _parse_path_to_fspeclist)
57
             grep -HE '^[[:alnum:]_]+\(\) \{' "$2" \
57
             grep -HE '^[[:alnum:]_]+\(\) \{' "$2" \
58
               | sed -e 's/^.*\///; s/\.sh:/./; s/(.*//'
58
               | sed -e 's/^.*\///; s/\.sh:/./; s/(.*//'
59
             ;;
59
             ;;
60
+        _parse_path_to_fnlist)
61
+            grep -E '^[[:alnum:]_]+\(\) \{' "$2" \
62
+              | sed -e 's/^.*\///; s/(.*//'
63
+            ;;
60
 
64
 
61
         _cat_function)
65
         _cat_function)
62
             local mod=$(ffoo _parse_fspec_to_mod "$2")
66
             local mod=$(ffoo _parse_fspec_to_mod "$2")
101
             ffoo _list_mfiles $2 | head -1
105
             ffoo _list_mfiles $2 | head -1
102
             ;;
106
             ;;
103
         _list_functions)
107
         _list_functions)
108
+            ffoo _list_mfiles "$2" | ffoo _parse path fspeclist
109
+            ;;
110
+        _list_functions_in)
104
             ffoo _list_mfiles "$2" | ffoo _parse path fnlist
111
             ffoo _list_mfiles "$2" | ffoo _parse path fnlist
105
             ;;
112
             ;;
106
 
113