#98 U (uppercase u) for undo all changes in a line

open
nobody
Editing (36)
4
2012-10-16
2012-10-16
dmed
No

Hi, I noticed that though the 'u' command is working in jvi, the 'U' ( uppercase u ) command is not. The 'U' command undoes all the changes that
happened in a line whether individual changes within the line were undone or redone.
It (The undo) works at the line level, restoring the line to what it was before any undo/redo/undo etc commands were done on the line.
Would it be possible to implement this ? Thx.

Discussion

  • Ernie Rael
    Ernie Rael
    2012-10-16

    The undo/redo is based on swing's undo/redo with some addition features provided by NetBeans. Getting that to also handle the "U" command would be tricky. I don't know how the corner cases work, for example after hitting RETURN in insert mode, what does a subsequent "U" do?

    I won't be working on that, but would support anyone who wanted to investigate/implement it.

     
  • Ernie Rael
    Ernie Rael
    2012-10-16

    • priority: 5 --> 4