set default directory in editor + display filename in title