org-brain icon indicating copy to clipboard operation
org-brain copied to clipboard

Feature Request: Bulk rename file or rename folder

Open walseb opened this issue 6 years ago • 1 comments

Sometimes I have lots of entries in a folder that I want to change the name of. Currently you can either call org-brain-rename-file on every entry which takes a long time or rename the folder manually and then clean up all of the org links pointing to the old folder. The problem with having bulk rename is that you can't use completing-read for it because you can't tell it that you are done with the file selection and want to move onto setting the folder to put them in. Creating a dired function would probably work. Just renaming a folder could be done with completing-read but then you couldn't just move out some files from a directory like you could with bulk renaming, you have to move all of the files in the directory to the new directory. One option that I thought about is to have a cleanup function that searches all files and attempts to fix all broken links, but that wouldn't work very well if you have multiple files with the same name.

walseb avatar Apr 08 '20 00:04 walseb

Hi! That's a good idea. In the future though my hope is that files have some other form of ID than only their file name. That way it would be okay if the file was moved or renamed. In future a org-mode release there will be support for file level properties, and I have put the file ID feature on hold until then. This has been discussed in some other issues, but I couldn't find them now.

Kungsgeten avatar Apr 11 '20 11:04 Kungsgeten