Could fd use some type of file to store/access saved search criteria? I didn't see an existing "save" style feature.
I'm imagining an option -w <name> / --write <name> which writes search criteria to the file when appended to the end of a valid fd command.
- Ex:
fd -e cpp -e cxx -e h -e hpp -w cpp src files
The <name> would allow the user to use another option -r <name> / --read <name> to lookup the saved search criteria and execute it.
- Ex:
fd -r cpp src files, same as executing fd -e cpp -e cxx -e h -e hpp
The file itself could just be a simple txt file, but maybe using something like json would make it easier to work with using some crate for easy parsing.
Could fd use some type of file to store/access saved search criteria? I didn't see an existing "save" style feature.
I'm imagining an option
-w <name>/--write <name>which writes search criteria to the file when appended to the end of a valid fd command.fd -e cpp -e cxx -e h -e hpp -w cpp src filesThe
<name>would allow the user to use another option-r <name>/--read <name>to lookup the saved search criteria and execute it.fd -r cpp src files, same as executingfd -e cpp -e cxx -e h -e hppThe file itself could just be a simple txt file, but maybe using something like json would make it easier to work with using some crate for easy parsing.