Git Product home page Git Product logo

sublimehowdoi's Introduction

A plugin leveraging howdoi - a unix code search tool terminal command to be useable from sublime text.

Look for How Do I: code search in command palette entery query and the response is shown in a new tab or view when the query returns

Install

Install from Package Control or git clone: https://github.com/jlangston/SublimeHowDoI into your packages folder or download the zip of the repository and place that in your packages folder

At this point you have to have howdoi installed and working from the command line for this plugin to work at all

Usage

How Do I: [-h] [-p POS] [-a] [-l] QUERY [QUERY ...]

code search tool

positional arguments:
  QUERY              the question to answer

optional arguments:
  -h, --help         show this help message and exit
  -p POS, --pos POS  select answer in specified position (default: 1)
  -a, --all          display the full text of the answer
  -l, --link         display only the answer link

Settings

Default shortcut key super + alt + h to show How Do I: search box

Settings file: syntaxes: List of languages with syntax hilighting support that the plugin will try to match depending on the howdoi question

useBuffer: Show howdoi answer in quick panel or new tab

Contributors

dnatag

Change Log

  • Rewrite much of the code base to make it compatible with ST3. Borrowed some codes from kemayo's sublime-text-2-goto-documentation at https://github.com/kemayo/sublime-text-2-goto-documentation.git
  • Add support of howdoi options except --color since ST3 have better syntax highlight scheme.
  • Add status message for user notification
  • Add main menu of Preferences

sublimehowdoi's People

Contributors

dnatag avatar

Stargazers

Taguar avatar  avatar Thomas Threadgold avatar  avatar Molly Forrest avatar The Dude avatar Erwan avatar Louis Dang avatar

Watchers

James Cloos avatar  avatar

Forkers

dnatag

sublimehowdoi's Issues

Encoding error: Not working

Hi,

I just installed your HowDoI Sublime Text package. I tested "how do I" in iTerm and everything is working fine.

In Sublime Text 3, I always get the error:

Traceback (most recent call last): File "/usr/local/bin/howdoi", line 11, in <module> sys.exit(command_line_runner()) File "/usr/local/lib/python3.6/site-packages/howdoi/howdoi.py", line 267, in command_line_runner print(howdoi(args)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 802-803: ordinal not in range(128)

Can you help me please? Thank you.

Sublime Text version: Sublime Text vBuild 3144 (3144)
OSX 10.10.

Add the search result url source.

Hi,

I just installed the package and realised that I when I use howdoi in iTerm I have the option of displaying the url of the result but I don't have this option in the package.

As it is a really useful one, is it an option that your are planning to add to the package?

Thank you.

issues in windows

Good one.

In windows, the answer appear and then dissaper immediately

Retrieving Answer... (then nothing)

I often get what I can only imagine is a timeout error of some sort. It seems often times when I query the status bar will show the "Retrieving answer..." text, but then nothing happens. If I try the same query on the command line with the "howdoi" script, I get the answer.

This is intermittent. Usually after a few successful queries in Sublime Text it will start to fail more often.

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.