Skip to content

๐Ÿ” WordPress Codex / Developer / Documentation references plugin for Wox

Notifications You must be signed in to change notification settings

DamChtlv/WordPress-Codex-Wox-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

63 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Wox.Plugin.WordPressCodex

Searching WordPress core documentation made easy.
Finding results is very fast because it searches in local JSON files (instead of an online API). The JSON files included in this workflow are created with the WP Parser JSON plugin

Screen 1

Features

You can search through all this and click to access rapidly on the WordPress reference page:

  • Actions: wp action init
  • Classes: wp class wp query
  • Hooks: wp hook get term
  • Filters: wp filter edit term link
  • Functions: wp function get permalink

... or you can also search randomly like so: wp get permalink
Screen 2

Installation

To install the plugin :

  • Download the latest release of the plugin : https://github.com/DamChtlv/WordPress-Codex-Wox-Plugin/releases/latest/download/WordPress.Codex.zip
  • Go to your folder C:/Users/%USER%/AppData/Roaming/Wox/Plugins then simply unzip the archive and you should have a folder named WordPress Codex
    Should be something like: C:/Users/%USER%/AppData/Roaming/Wox/Plugins/WordPress Codex/
  • Restart Wox and type Settings
  • Verify that you have correctly set the Python Path in General tab
    Should be something like: C:/Users/%user%/AppData/Local/Programs/Python/Python37/
  • Go to the Plugin tab and look for WordPress Codex plugin
    If it doesn't show, either you put the plugin folder in the wrong directory or Wox can't find your python
  • Type wp in Wox & wait few secs (you will see the loading occuring while it's checking / updating json files)
  • Enjoy โœŒ

Version

It's all based on WordPress 5.4 Codex / Developer references at the moment
Update command allows to update json files to get latest version of codex reference.

TODO

  • Allow random search without prefix: wp get permalink (and maybe add type of reference in description of result)
  • Improve search algorithm, this should normally works: wp function get title (by exploding each word and search for each of them a match with a scoring system)
  • Make my own json files from developer reference site (to replace description by arguments of func, hooks... More interesting data)
  • Migrate this plugin to Flow Launcher

Credits

This is inspired by / fork of Alfred WordPress Developer Workflow (by @keesiemeijer) for Wox (Windows) written in Python

About

๐Ÿ” WordPress Codex / Developer / Documentation references plugin for Wox

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages