Folding in consoles

In my plugin, I use code folding in my REPL view to make the stacktrace lines look more Clojure-y. There are two main aspects to this - I completely hide some lines and then I use folding in parts of visible lines to make them look nicer, for example by demangling Clojure names. I'd like to do the same for all consoles so that when users run Clojure scripts they get the same behaviour, but I can't see a way to do this. I can completely hide stacktrace lines by implementing ConsoleFolding, but there doesn't seem to be any way to add partial line folding to a console view. Is there a way to achieve this?

Please sign in to leave a comment.