franks42 / clj-ns-browser

Smalltalk-like namespace/class/var/function browser for clojure docs and source-code based on seesaw
Eclipse Public License 1.0
175 stars 11 forks source link

Option to hide namespaces that are loaded only because of clj-ns-browser #36

Open jafingerhut opened 12 years ago

jafingerhut commented 12 years ago

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.

franks42 commented 12 years ago

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...

jafingerhut commented 12 years ago

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.