Fork me on GitHub
#cider
<
2021-05-12
>
mafcocinco00:05:32

Newb question: Are there cross file search capabilities which resolve namespace aliases as part of the search within CIDER (or emacs generally)?

dpsutton00:05:50

Can you give an example of what you mean?

mafcocinco01:05:02

For example, in the context of a directory and its child directories, I would like to find all uses of foo.bar namespace, including places it is aliased to f.b.

dpsutton01:05:20

I think there’s something like m-x cider-find-usages

apt14:05:07

Maybe this is too simplistic, but what about a text search on the ns name (recursively on the dir you are interested in)? If you do this, you can at least collect all files that use the ns. Then, you’d have to look one by one what’s being used. You could algo use LSP, but AFAIK there’s the concept of find usages for vars, but not for namespaces

ericdallo16:05:07

https://clojure-lsp.github.io/clojure-lsp/ support find references of a var or ns as well

apt16:05:48

didn’t know about ns references, noice