Trailing edit

Add support for trailing \e to make it easier to invoke editor on history.