-
-
Save carlwiedemann/3954318 to your computer and use it in GitHub Desktop.
Find the given function from anywhere in the Drupal codebase, open in TextMate with cursor on same line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function findfunc { | |
grep -rn "function $1(" `drush dd`| grep -vP "tags|patch$"| awk -F':' '{print $1,$2}' | | |
while read FILE LINE | |
do | |
mate -l ${LINE} ${FILE} | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment