improve current path snippets when [No Name] buffer