You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, if we have an an insertion as our last change, any further inserts will be concatenated to the same change. This has a couple of effects that I noticed have been slightly inconvenient so far.
If you only add inserts, the program will not see the file as have "changed" since the number of changes is still the same. Thus, if you quit the program, it will not ask if you want to save.
If you write a long line with only insertions, a single redo will undo the entire line.
I think if we break a long insert into multiple inserts split by white space, it would mitigate the second point and many cases in the first point. I think to completely solve the first point, we can maybe keep track of the last change and if it is an insertion change, we store it. Then when we are checking if the file is dirty, we can also add a check to see if the last insertion change is still the same.
Also, I was thinking of combining deletions in the same way that insertions are (or will be) implemented. Currently, each deletion is its own change so undoing a delete of 50 characters will require 50 undoes.
What do you think about these?
The text was updated successfully, but these errors were encountered:
Right now, if we have an an insertion as our last change, any further inserts will be concatenated to the same change. This has a couple of effects that I noticed have been slightly inconvenient so far.
I think if we break a long insert into multiple inserts split by white space, it would mitigate the second point and many cases in the first point. I think to completely solve the first point, we can maybe keep track of the last change and if it is an insertion change, we store it. Then when we are checking if the file is dirty, we can also add a check to see if the last insertion change is still the same.
Also, I was thinking of combining deletions in the same way that insertions are (or will be) implemented. Currently, each deletion is its own change so undoing a delete of 50 characters will require 50 undoes.
What do you think about these?
The text was updated successfully, but these errors were encountered: