Hello,
Question: Do your file names have spaces / tabs / or quotes ??
If not, what i usually do is the following:
- Type the search
- Copy Search results (the obsidian icon option)
- !IMP! choose show path option
- Copy the list into a text file for e.g.
move.txt
- Run the following shell command:
cat PATH/TO/move.txt | xargs -I % sh -c 'echo \"PATH/TO/YOUR/VAULT/%\";' | xargs -I % sh -c 'cp -rf % PATH/TO/DESTINATION/FOLDER/'
P.S:
- if your names have spaces and other path breaking characters you need to search / replace all of them to escape them before running the command otherwise the paths will be broken.
- The path has to be either the absolute path or the relative path from where you are running the command. You need to replace
PATH/TO/ and PATH/TO/YOUR/VAULT/ and PATH/TO/DESTINATION/FOLDER/ from the above command (keep everything else)
- I am sorry if this is not what you are looking for
Edit 1:
This is from inside the note
To see where you are run the print working directory command below
Edit 2:
You can do the same thing using python instead of sh and **it wouldn't care about spaces / characters.**
I can share it if it is what you want please let me know.