Implement file history for the wave editor.