{"action":"created","issue":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4383","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4383/labels{/name}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4383/comments","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4383/events","html_url":"https://github.com/syl20bnr/spacemacs/issues/4383","id":124795213,"number":4383,"title":"File rename broken for changing capitalization","user":{"login":"csdrane","id":1772401,"avatar_url":"https://avatars.githubusercontent.com/u/1772401?v=3","gravatar_id":"","url":"https://api.github.com/users/csdrane","html_url":"https://github.com/csdrane","followers_url":"https://api.github.com/users/csdrane/followers","following_url":"https://api.github.com/users/csdrane/following{/other_user}","gists_url":"https://api.github.com/users/csdrane/gists{/gist_id}","starred_url":"https://api.github.com/users/csdrane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csdrane/subscriptions","organizations_url":"https://api.github.com/users/csdrane/orgs","repos_url":"https://api.github.com/users/csdrane/repos","events_url":"https://api.github.com/users/csdrane/events{/privacy}","received_events_url":"https://api.github.com/users/csdrane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-01-04T16:52:50Z","updated_at":"2016-01-04T20:55:22Z","closed_at":null,"body":"I'm running 0.105.0 but this was an issue on earlier versions as well. Renaming `./Foo.md` to `./FOO.md` using `SPC f R` fails (I receive a prompt telling me I'm attempting to rename Foo.md to Foo.md). I suspect that this is due to the autocomplete changing FOO back to Foo without showing so to the user. I didn't see any way to disable this behavior to test this."},"comment":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/comments/168806180","html_url":"https://github.com/syl20bnr/spacemacs/issues/4383#issuecomment-168806180","issue_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4383","id":168806180,"user":{"login":"nixmaniack","id":542810,"avatar_url":"https://avatars.githubusercontent.com/u/542810?v=3","gravatar_id":"","url":"https://api.github.com/users/nixmaniack","html_url":"https://github.com/nixmaniack","followers_url":"https://api.github.com/users/nixmaniack/followers","following_url":"https://api.github.com/users/nixmaniack/following{/other_user}","gists_url":"https://api.github.com/users/nixmaniack/gists{/gist_id}","starred_url":"https://api.github.com/users/nixmaniack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nixmaniack/subscriptions","organizations_url":"https://api.github.com/users/nixmaniack/orgs","repos_url":"https://api.github.com/users/nixmaniack/repos","events_url":"https://api.github.com/users/nixmaniack/events{/privacy}","received_events_url":"https://api.github.com/users/nixmaniack/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T20:55:22Z","updated_at":"2016-01-04T20:55:22Z","body":"Not sure of exact issue(on osx as well here), I tried setting `read-file-name-completion-ignore-case`, `helm-file-name-case-fold-search` and `helm-comp-read-case-fold-search` to `nil` without success. It looks like passing correct dir value to [`read-file-name`](https://github.com/syl20bnr/spacemacs/blob/02f7500c867fc14c021769fe7f12459f275e9e20/layers/%2Bdistribution/spacemacs-base/funcs.el#L285) allows me to rename successfully. \r\n\r\n```diff\r\ndiff --git a/layers/+distribution/spacemacs-base/funcs.el b/layers/+distribution/spacemacs-base/funcs.el\r\nindex 483c143..08af315 100644\r\n--- a/layers/+distribution/spacemacs-base/funcs.el\r\n+++ b/layers/+distribution/spacemacs-base/funcs.el\r\n@@ -278,11 +278,12 @@ argument takes the kindows rotate backwards.\"\r\n (defun spacemacs/rename-current-buffer-file ()\r\n   \"Renames current buffer and file it is visiting.\"\r\n   (interactive)\r\n-  (let ((name (buffer-name))\r\n-        (filename (buffer-file-name)))\r\n+  (let* ((name (buffer-name))\r\n+         (filename (buffer-file-name))\r\n+         (dir (file-name-directory filename)))\r\n     (if (not (and filename (file-exists-p filename)))\r\n         (error \"Buffer '%s' is not visiting a file!\" name)\r\n-      (let ((new-name (read-file-name \"New name: \" filename)))\r\n+      (let ((new-name (read-file-name \"New name: \" dir)))\r\n         (cond ((get-buffer new-name)\r\n                (error \"A buffer named '%s' already exists!\" new-name))\r\n               (t\r\n```"}}