Jump to content
Sign in to follow this  
RuiPereira

Python Documentation: Search Python documentation with suggestions and define functions

Recommended Posts

Hi all,
 
This is an Alfred v2 workflow to search the online Python documentation. It loosely emulates the behavior of the (javascript-based) Sphinx search function of the site.
 
Installation
 
Download v1.0 and import into Alfred v2.
 
Usage

  • py [your search string] - search in the online Python documentation
    • the Python3 documentation is available with py3
    • selecting an item will open the corresponding documentation page, highlighting the search string
    • you can quicklook the documentation without leaving Alfred with ⌘Y

fdopen.png?raw=true

  • modifier keys
    • cmd - returns a succinct definition for function entries from the local pydoc (Python 2 only)​
    • fdopen_doc.png?raw=true
    • ctrl - forcibly rebuild the local index​

Features

  • tab-completion
  • list module contents

os_pa.png?raw=true

  • fuzzy logic

os_path_sptxt.png?raw=true

 

Enjoy!

Edited by RuiPereira

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  
×
×
  • Create New...