12

I just hit SPC a u and it opened the undo-redo tree. Now I can't operate it.
I go on the tree, press enter and nothing happen. I can't close it!
Either :q is unrecognized. How do I operate this ?

ChiseledAbs
  • 449
  • 1
  • 4
  • 12
  • 1
    Although this is not technically cross-posting, emacs.stackexchange.com forum participants should be aware that there is an identical thread in reddit.com: https://www.reddit.com/r/emacs/comments/54hptg/how_does_the_undo_tree_work_in_spacemacs/?st=itje04nl&sh=d638bc81 – lawlist Sep 26 '16 at 01:41
  • what is `SPC a u`? – Andrea Borga Jun 25 '17 at 07:07

2 Answers2

12

On Vim editing style, naturally:

  • j and k to navigate through the tree up and down.

  • h and l to switch branches.

When using Emacs editing style:

  • n and p to navigate through the tree up and down.

  • f and b to switch branches.

On both editing styles:

  • q or C-g to quit and leave in current state.

  • C-q to abort changes.

Note: Undo-Tree is a very powerful package and has lots of useful/cool features that are comprehensively explained only in its source code embedded documentation, which could be visualized by calling:

M-x finder-commentary <RET>

then type:

undo-tree <RET>

Or take a look at the Online Undo-tree documentation


Other useful commands:

  • d Toggle diff display.

  • t Toggle display of time-stamps.

  • s Toggle keyboard selection mode.

  • , and < Scroll left

  • . and > Scroll right

2
  • h and l to move from branch to branch (the current one is highlighted).
  • C-n and C-p to move up and down the tree.

When you are ready press q and you are out.

Dionysis
  • 328
  • 3
  • 11