Add back replace mode and specific delete *

* only usable by Lua