clj-ns-browser
clj-ns-browser copied to clipboard
Option to hide namespaces that are loaded only because of clj-ns-browser
I don't know if this would be desirable by users, or if it would be difficult to implement.
If a user had a relatively small project, many of the namespaces they see in the browser may only show up because of their use of clj-ns-browser. It might be nice if they could hide those with a checkbox menu item.
One potential difficulty implementing this idea is to determine whether a namespace appears only because it is used by clj-ns-browser, but not also by the user's project. For example, a user's project might use the namespace seesaw.core just as clj-ns-browser does, and choosing to hide namespaces used only by clj-ns-browser should not hide seesaw.core in that case.
That's a difficult one form an implementation aspect as you cannot easily find out what the required ns's are for a ns without parsing the ns-macro. Unless there are alternative ways that I do not know about...
We should ask the Leiningen developers if there is a way to do this in a Leiningen plugin, or perhaps it already exists today as a Leiningen command line option.