Give Me Definition (gmd) is a shell utility that allows you to quickly find and retrieve details about class and function definitions in a Python project tracked by git.
git clone git@github.com:ychiucco/gmd.git
gcc gmd/gmd.c -o /usr/local/bin/gmdgmd [-c|-f] [-s] [-p] [-n] [-o] 'arg'-
Query options:
-c,--class: Search for class definitions only (cannot be used with-f)-f,--function: Search for function definitions only (cannot be used with-c)-s,--sensitive: Make the search case-sensitive
-
Printing options:
-p,--path: Display the file path and line number of the match-n,--name: Display the name of the matched object-o,--open: Open matching file at the correct line with VSCode (ignore-pand/or-n)
-
Positional arguments:
arg: The class or function name to search for. Use.*in any position as a wildcard to match patterns. Wrap the argument inside quotes (double or single) when using wildcards.