add suppression functionality to undo manager

Fixes codio/client#178