crux icon indicating copy to clipboard operation
crux copied to clipboard

crux-rename-file-and-buffer cannot be called repeatedly

Open Wilfred opened this issue 7 years ago • 3 comments

crux-rename-file-and-buffer calls vc-rename-file if the file is associated with a VC backend.

If I try to rename a git-backed file twice, the second time just errors with vc-rename-file: Please update files before moving them.

Wilfred avatar Apr 06 '17 13:04 Wilfred

I'd be tempted to just do the rename without calling any VC logic. I prefer to stage changes separately when working with git.

Wilfred avatar Apr 06 '17 13:04 Wilfred

Maybe we can just add some prefix argument to controlling. I never do repeated renames, so I find doing the vc rename in the same step quite useful.

bbatsov avatar Dec 30 '17 15:12 bbatsov

Clearly you're a better typist than me. It's common for me to mistype the file extension :)

Wilfred avatar Dec 30 '17 17:12 Wilfred