What I’m trying to do
Hi all, I’m trying to create a keyboard shortcut that can move a file’s folder to a specified location.
I’m familiar with the Ctrl+M shortcut to move individual files, though I was thinking of setting something like a Ctrl+Shift+M shortcut that I would run on a file to move the entire folder that the file is in to a specified location.
For example, I have this file structure:
- /
- Areas/
- Folder A/
- File1
- File2
- File3
I open up File1, press Ctrl+Shift+M, the move prompt comes up, I type in “Areas”, press Enter, and then the entire folder and all of its files moves to the “Areas” folder.
- /
- Areas/
- Folder A/
- File1
- File2
- File3
- Folder A/
- Areas/
Things I have tried
I’ve been looking into the Templater documentation as well as the Obsidian API declaration file and I can’t see a way of bringing up the move file dialogue that I’m familiar with.
Ideally I would bring this dialogue window up, get the output, and then add some code to move the entire folder to the returned location.
Alternatively I could create a feature request for this, though I don’t want to have to wait around for that to be implemented over all of the other things the team are doing.
Thanks!