Add support for editing commands whilst running