flexsurfer / re-frisk

Take full control of re-frame app
https://flexsurfer.github.io/conduit-re-frisk-demo/
456 stars 29 forks source link

Shorten fully qualified keywords that belong to app's namespace #25

Closed alexander-yakushev closed 6 years ago

alexander-yakushev commented 7 years ago

I use namespace-qualified keywords everywhere in my app-db, and when re-frisk renders them completely, I have to make its window width very wide to be able to see anything. Do you think it would be possible to treat this somehow? I see one possible solution: allow to specify a prefix of your app when initializing re-frisk, like (enable-re-frisk! {:common-ns-prefix "com.example.myapp"}), so that later the keywords are rendered like :.core/foo.

flexsurfer commented 7 years ago

hi, i have the same thing in my project, but i can't find the good solution, i should think about it again

rngmonk commented 7 years ago

I've been using Cursive recently and I've found their truncated namespace style pretty convenient. E.g. clojure.tools.nrepl.middleware.interruptible-eval gets rendered as c.t.n.m.interruptible-eval.

flexsurfer commented 6 years ago

0.5.0