Last active
December 10, 2015 23:39
-
-
Save AaronHolbrook/4511254 to your computer and use it in GitHub Desktop.
Curls in the Function reference page from WordPress.org, strips everything except the function name. For future use in building Sublime plugin for function lookups.
This file contains hidden or 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
curl -s http://codex.wordpress.org/Function_Reference | grep -C 0 "title=\"Function Reference" | sed 's/.*:.*Function Reference\/.*">//' | sed 's/<.*>//' | sed 's/(.*)//' > wp-functions.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check out https://github.com/welovewordpress/SublimeWordPressCodex -- does function lookups. I bind
ctrl-shift-h
towordpress_codex_open_selection
so it's lightning fast to look up whatever function my cursor is on!{ "keys": ["ctrl+shift+h"], "command": "wordpress_codex_open_selection", "context": [{ "key": "selector", "operator": "equal", "operand": "source.php" }]}