updated new buffer write to working directory when opened with right click menu on sidebar