Philippe wrote:
>Well, there are also paste, abbreviation expansion perhaps, and some 
>other tricks to handle.
>I don't know well the system of notifications, but can't we handle at 
>least at the level of an atomic undo operation? Since little document 
>modifications are collapsed in a single undo operation, this might offer 
>a good opportunity for not-so-frequent notifications. In Nicolas use 
>case, we would change the closing tag only when the new tag has been 
>completely changed and user go elsewhere, for example.

That would be great. I mean, in my use case binding Backspace and Delete might 
work, as it is in my view rather unlikely that you change a tag's name without 
overtyping it. It is unlikely but not impossible of course, and I was thinking 
of this feature as generally useful, and I think Philippe's proposal might be 
something to investigate.

There are some things to consider. When you type text, it is grouped as one 
undo command. From the behaviour I can see (didn't look at the code), a new 
undo group is started as soon as you start typing somewhere else (or you delete 
a character using Backspace, Delete or something similar). This means that you 
can't trigger an OnChange() (or whatever this will be called) until the user 
starts typing somewhere else. I don't think it is a problem, but it's something 
to be aware of.
We also need to be aware that Undo and Redo would also trigger this.

It would be really great if something like this existed.

Nico

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to