On 1/27/2008 1:50:49 AM, Ted Green wrote:
>At 09:57 PM 1/26/2008, you wrote:
>>From: "Jack Williamson"
>>
>> Is is possible to configure undo to skip over,
>> or at least shield the user from display of,
>> operations that don't change the file.
>> This seems to be the way most other editors
>> I've used work.
>
> Sorry, that is not possible in VEDIT.
> You can "undo" (paste) up to
> the last 5 deletions anywhere
> you like with {EDIT, Undo, Deletion}.
But it would be a very useful enhancement.
I have often missed that, too.
I think the best way would be to have another option in the Undo menu, "Undo cursor movements" or "Undo until last change".
Selecting this option would automatically undo all the keypresses that did not change anything in the file. When first actual change is found, undo would stop there.
I think Vedit already knows which operations change the file, since when you do the first actual change, Is_Altered flag is set and an asterisk is displayed on window title bar.
Maybe this one bit of information could be added into each item in the Undo buffer.
Another (small) enhancement related to this would be a counter that counts how many changes have been made. That is, instead of just setting the Is_Altered flag, Vedit would increase a counter. The counter value would be displayed in Status Display. This should be quite simple to implement.
--
Pauli
|
|