JonyEpsilon / gorilla-repl

A rich REPL for Clojure in the notebook style.
http://gorilla-repl.org
MIT License
888 stars 104 forks source link

WIP: Lockable free segments #206

Closed k4y3ff closed 1 year ago

k4y3ff commented 9 years ago

Hi, Jony! :wave:

I was reading #193 and decided to give it a go! So, I wrote a draft! And this is a WIP PR. Do not merge; do not pass GO, do not collect $200; etc.

Current functionality:

I'm running into one current, obvious problem, though, which I'm hoping you'll have some input on:

I've tried various ways to get around this, especially by just having self.lock in segment.js set self.markupVisible(false); so long as self.locked() == true. But, when I tried that approach, specifically, I ran into the problem of redefining activate and deactivate for locked segments, which was... yargh. Because activate and deactivate currently involve CodeMirror cursors.

Anyway, thoughts? Advice?

JonyEpsilon commented 9 years ago

Hi, just a quick ping as am on my hols at the moment! Will have a proper look once I'm back :-)

JonyEpsilon commented 9 years ago

Hi Katherine,

sorry once again for being so slow on getting back to you on this!

Looks good to me, on the whole. A few comments:

But, yes, looks good, and will be a good feature I think :-)

Jony