On Thu, Oct 8, 2020 at 6:58 AM gar <[email protected]> wrote:

Actually let my say a word about undo.
> I feel very uncomfortable when undo unmarked nodes and remove clones.
> Actually when I started to use Leo I expected that there would be several
> undoes: for tree operations, for editors, for marks/clones etc.
> Can anybody explain me why all the sorts of undoes are united?
>

I agree with the other respondents. The present operation is the simplest
thing that could possibly work, both in concept and in implementation. This
does not mean that the implementation is simple, it only means that no
other simpler implementation has yet been found.

Kent Tenney has proposed, and Vitalije has implemented, a concept known as
"node history". This allows one to look at the history of a node
independently of questions of undo.

git also allows line-by-line perusal of the history of individual files,
via git blame and gitk. In principle, one could track the history of *nodes*
this way, but it would be quite clumsy. Still, git can recreate virtually
*any* kind of history, with enough work.

I have no plans to change Leo's undo approach, which is described in the
module level docstring in leoUndo.py.  See the section:
<< How Leo implements unlimited undo >>.

Finally, let me say that the problem with restoring marks will surely turn
out to be a relatively simple bug to fix. The fix will happen shortly.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS35ezsX4UJ1vp6p27TBSztR8Z8_swX5F4KqqrBh2MmCiA%40mail.gmail.com.

Reply via email to