hashp icon indicating copy to clipboard operation
hashp copied to clipboard

How to disable coloring?

Open ertugrulcetin opened this issue 5 years ago • 7 comments

Is there any config that we change coloring options?

ertugrulcetin avatar Dec 18 '19 21:12 ertugrulcetin

Not currently, but I'm thinking about how best to add settings like that. Maybe as system properties or environment variables.

weavejester avatar Dec 18 '19 22:12 weavejester

It would be nice to have those settings. Maybe in .lein/profiles.clj?

ertugrulcetin avatar Dec 19 '19 08:12 ertugrulcetin

I'm too lazy to make and suggest a PR (of course I'm lazy, why would I use Clojure if I wasn't?). Because I'm super lazy, I'm just doing this shit:

(alter-var-root
 #'hashp.core/print-opts
 (constantly (assoc hashp.core/print-opts :print-color false)))

agzam avatar Mar 15 '21 17:03 agzam

maybe I'm doing something stupid but the highlighting makes it all but impossible to use in fireplace. Even with @agzam's hack still some escape codes are generated. Or maybe I'm just the only one using vim for clojure?

timrobinson33 avatar Jun 15 '21 15:06 timrobinson33

I'm using vim too and am having some trouble with this. https://github.com/weavejester/hashp/issues/4#issuecomment-799621441 only seems to work in clj, and i'm using cljs. Curious if anyone else has any workarounds.

kovasap avatar Aug 28 '22 23:08 kovasap

This seems to be a broadly applied convention: https://no-color.org/ Although a dedicated system property may also work since setting environment variables isn't supported in project.clj and deps.edn.

borkdude avatar Feb 03 '23 19:02 borkdude