zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
48.65k stars 2.92k forks source link

docs crawler using the /createdocs action #18903

Open artivilla opened 1 week ago

artivilla commented 1 week ago

Check for existing issues

Describe the feature

I'm a convert from Cursor but one thing I really liked about their product was the @docs crawler you could index and reference in your assistant. Do we have something similar to this? I use the same libraries all the time.

https://docs.cursor.com/context/@-symbols/@-docs

In addition, I think the other ones are super useful to such as the @code to only highlight what is referenced in the editor or @codebase to reference entire codebase.

These might exist but would love if we can document them better.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

notpeter commented 1 week ago

There is limited support for this already in Zed, but it is behind a feature flag because it only supports Rust (docs.rs). To enable this feature use:

  "slash_commands": {
    "docs": {
      "enabled": true
    }
  },

We hope to add support for additional docs providers in the future, but in the meantime you can see how this is implemented with docs.rs by looking at crates/indexed_docs in the repo.

Is there particular doc source(s) you'd like us to support?

artivilla commented 1 week ago

figma api and sample repos nextjs tailwind railway docs and sample repos stripe drizzle orm

most docs links are urls so Idk what the underlying format is. It is likely just web pages.

will wait it out. thanks!