Undo stack

    <% for entry in @undoEntries: %>
  1. <%= entry.description %> <%= JSON.stringify(selectedRange: entry.snapshot.selectedRange, context: entry.context) %>
  2. <% end %>

Redo stack

    <% for entry in @redoEntries: %>
  1. <%= entry.description %> <%= JSON.stringify(selectedRange: entry.snapshot.selectedRange, context: entry.context) %>
  2. <% end %>