[Cuis-dev] [RFC] TextModel(Morph) and acceptOnAny-mode
Juan Vuletich
juan at cuis.st
Fri Sep 16 06:12:56 PDT 2022
On 9/15/2022 6:07 AM, Gerald Klix via Cuis-dev wrote:
> Hi all, Hi Juan,
>
> I just discovered that the TextModelMorph updates
> its model more often in “acceptOnAny”-mode than
> records undo information.
> Ordinary edits are compacted into one undo-event
> if they happen less than one second after the last edit.
> (See TextModel>>#logUndoAndReplaceFrom:to:with:).
>
> Is there interest/demand to add an “accept-mode” -- let's
> call “acceptOnAnyDelayed” -- to the TextModelMorph
> that uses TextModel's last edited time stamp,
> to delay accepts?
>
>
> Best Regards,
>
> Gerald
It would make the behavior more consistent. I think it is a good idea.
The alternative is if #acceptOnAny, then each keystroke is a do/undo
command, i.e. no merging them.
Thanks,
--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich
More information about the Cuis-dev
mailing list