-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix to signature losing "="s when file is renamed.
Four file renaming commands may lose spaces (denoted by the "=" in existing filenames) when the user renames the file: 1. denote-rename-file 2. denote-dired-rename-files 3. denote-dired-rename-marked-files-with-keywords 4. denote-rename-file-using-front-matter This is caused by the function `denote-sluggify-signature`, which calls (indirectly) `denote--slug-no-punct`, which removes, among many other characters, all "="s, which represent spaces. These spaces are thus lost even if the user does not change the signature. To remedy this situation, all "="s are turned into spaces before being sent to `denote--slug-no-punct`, as spaces are not removed by this function. The function `denote--slug-put-equals` turns these spaces into "="s at the end of the file-renaming operation.
- Loading branch information
Showing
1 changed file
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters