Giter Club home page Giter Club logo

Comments (3)

andreyorst avatar andreyorst commented on May 25, 2024

Nice idea. Also, can be tied with a doc switch for plug command to specify documentation files or directory to parse and provide a list of files if there's more than one found as completion elements.

This way plugin authors can create doc directory and put a real documentation files there.

plug "ul/kak-lsp" doc %{
    doc/
    README.md
} config %{
    ...
}

What do you think?

from plug.kak.

Delapouite avatar Delapouite commented on May 25, 2024

Yes, your suggestion would be useful for plugins with bigger documentation.

Also I thought of an even better integration:
Instead of having a dedicated plug-doc command, could it be possible to hijack the regular doc command? (with -override or something)
The autocompletion would continue work as usual suggesting normal topics ('options', 'registers'…) but it will also add the name of plugins to displays their README.

This way the user would not have to learn something new, and this would be a pleasant surprise when they use the normal doc command and find that they can learn more about their favorite plugins.

from plug.kak.

andreyorst avatar andreyorst commented on May 25, 2024

I've thought about this, back when I've opened mawww/kakoune#2402, but unfortunately we're still at a sad state of documenting features in terms of external plugins.

I think that when user executes doc command, the expected result is to see documentation. Kakoune uses asciidoc for documentation. Most plugins have markdown documentation (if any) and by overriding doc we make the assumption that opened file will fulfill the purpose as documentation.

Such feature should be handled with care. I think that when no doc folder in plugin is found and a README is used as documentation, we should at least warn user that this may not be actual documentation.

from plug.kak.

Related Issues (20)

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.