Moved utility to open editor to utils
Added magic to capture command output and add to log