Code Monkey home page Code Monkey logo

searchdocs's People

Contributors

mirnovov avatar

Stargazers

 avatar

Watchers

 avatar

searchdocs's Issues

Consider explicitly turning on the menu option only for supported languages

Hi there! I still use your extension every day!...

As time passes, Nova gets more sophisticated. One thing that has been introduced is the ability for the menu option to be only active for the syntaxes that it works with. This only requires a very, very simple change, namely, adding on the extension.json file a filters clause to the commands section:

"commands": {
        ...
        "editor": [
                ...
                "filters": {
                    "syntaxes": ["javascript", "html", "css", "sass", "scss",
                        "less", "xml", "vue", "typescript", "python",
                        "php", "ruby", "perl", "shell"]
                }
                ...

That's it. When/if more languages are supported, they should be added to that list. Nova will do the rest.

This also guarantees that there aren't conflicts between different document searching features from other extensions which might use a similar mecanism (as Search the Docs... will be greyed out on unsupported languages).

Awesome extension! But how do we add new languages?

I simply adore your Nova plugin โ€” so simple, yet it does everything I wanted! Now the big question is: short of having to fork your whole plugin every time I wish to add another language, wouldn't it be easier to have some sort of user preference to add further languages?

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.