GithubHelp home page GithubHelp logo

devdocs-shell's Introduction

DevDocs Shell

A shell for DevDocs.

Screenshot Screenshot Screenshot

Motivation

I liked DevDocs and wanted to use it from VIM. I've tried browser automation with Chromium and separate profile with --remote-shell-port, but that didn't work out so I made this script.

Prerequisites

  • Python 2.7+ or 3+
  • WebKit2Gtk
  • Gtk3 along with Python bindings (the new ones: GObject Inrospection)

Usage

Just run devdocs.py. If you provide an argument then first argument will be searched (all other arguments are ignored).

VIM integration

Just add this to your .vimrc:

command! -nargs=? DevDocs :call system('devdocs.py <args> &')

au FileType python,ruby,javascript,html,php,eruby,coffee nmap <buffer> K :exec "DevDocs " . fnameescape(expand('<cword>'))<CR>

You'll have a command DevDocs and supported languages with use it for providing help (K in normal mode, usually runs man).

NOTE: devdocs.py doesn't go to background hence one needs to use & (shell background job) and its not supported on Win32.

TODO

devdocs-shell's People

Contributors

naquad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.