add ab/rename function for rename file and buffer