Fork me on GitHub
#cider
<
2024-04-08
>
jcd14:04:55

Is there any functionality via cider (or maybe via lsp) to search through all doc strings in a project?

vemv14:04:28

Not in cider You could get all vars for all namespaces, get the :doc from their metadata and grep from there

1
jcd14:04:13

Cool. Maybe I will play with that. It seems like it would be useful, especially for larger projects.

vemv14:04:05

Happy it helps. Personally I have a few such snippets for things that I don't particularly believe that many people would want into CIDER

jpmonettas14:04:16

you can copy clojure.repl/apropos which already do that kind of stuff even with regexes but just looks at the names, not the docstrings

☝️ 1
🙏 1
dpsutton14:04:16

clojure.repl/find-doc

💯 1
🙌 1
jcd16:04:57

Awesome, thanks for the tips!

aisamu19:04:16

> Personally I have a few such snippets for things that I don't particularly believe that many people would want into CIDER Are they on a repo somewhere, @U45T93RA6? They be useful as customization examples!

vemv19:04:06

For the cronically curious 🙃 https://github.com/zenmacs/.emacs.d/tree/master/snippets/clojure-mode These are Yasnippet snippets, some are file oriented, others repl oriented Intents can go from 'abbreviate' to 'how do I do this thing I need once a year?' to 'small feature'

❤️ 1
bozhidar06:04:46

@U0739PUFQ But CIDER already supports this natively. I'm shocked that nobody here knows this. 😄

🙌 1
jcd13:04:01

Aha! Thanks!