For VimPharo, I want to have a different cursor depending on whether a tool
is in insert or normal mode.

I tried a handful of ways, but they all failed or worked
partially/inconsistently. Here's some of them:
* add the state to the paragraph, but the entire paragraph gets replaced
during the life of the tool, so the state gets lost
* add the state to the editor, but the situation is the same
* add the state to PluggableTextMorph, override and access it from
TextMorphForEditView>>updateFromParagraph. This was an extreme PITA and got
me very acquainted with the emergency evaluator. It "worked", but only after
using the arrows a bit.

Does anyone have any idea where I might hook in?

<rant>I find the whole text system very confusing. What the heck does a
paragraph know about insertion points?? A view has one paragraph object,
even if there are several paragraphs (as understood by the rest of humanity
as a block of text with breaks between the adjoining ones. Editors and
Paragraphs are thrown out and replaced on a whim. I'm finding it very hard
to understand and modify</rant>

Thanks,
Sean

--
View this message in context: 
http://forum.world.st/Customizing-the-Caret-of-a-PluggableTextMorph-tp4640245.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

Reply via email to