69a1e056ff
1. Fix `short-name` for directories. Previously it was empty string. 2. Remove redundant check for existing buffer: 1. `(get-buffer new-name)` always return `nil`, because `new-name` is a path to file, not a file name. 2. `(find-file new-name)` handles this situation. 3. `dired-rename-file` handles this situation as well. 3. Use `dired-rename-file` to do the dirty stuff. 1. Renames files and directories. 2. All associated buffers are updated. If you rename a directory, all buffers that were visiting files from that directory now visit files from new directory. 4. Properly handle recentf list update for directories - all files from the renamed directory are removed from recentf list and the same files but from new directory are added back. |
||
---|---|---|
.. | ||
spacemacs-completion | ||
spacemacs-defaults | ||
spacemacs-editing | ||
spacemacs-editing-visual | ||
spacemacs-evil | ||
spacemacs-language | ||
spacemacs-layouts | ||
spacemacs-misc | ||
spacemacs-modeline | ||
spacemacs-navigation | ||
spacemacs-org | ||
spacemacs-project | ||
spacemacs-purpose | ||
spacemacs-visual |